tests: fix tests on IPv6 hosts