tests: Make the resolver tests less strict.

The resolver tests where checking on the exact output but depending on
the resolver and the platform's preference for IPv6 over IPv4 the output
can be different.