add tests for ipv6 and ipv4 connection and ipv6only sockopt