TS-1570: Minor fix for ats_ip_parse and additional regression tests.