On some PCs, resolving `invalid address` will perform a real name
resolution using the network. This is slows down the test and risks
the test failing if the resolution succeeds.
Use `localhost` instead which shold return a known value, and add an
invalid ip address test for good measure.