add tests for IPAddr