Fix tests when disabled IPv6 support