Add test for IPv4 and IPv6.