Merge pull request #3682 from ahnh/UnitTest_ipaddress

Updated CI_Input unit tests and fixed undefined offset error in CI_Input::ip_address()