test ipv6 addresses as well as ipv4

adds a test for ipv6 addresses