Buggy builds of OpenJDK do not like hosts with very long host names,
and can crash in some environments. Diffy Cuckoo the Deckard based
auto-verifier for Gerrit on Google Compute Engine is unable to run
unit tests due to the JVM disliking the autoassigned host name.
Hardcode the loopback address for all unit tests. This also
isolates tests from temporary IP address changes, e.g. roaming
between different WiFi networks.
Change-Id: Id462d5bc3dddcb3b761239bb2be44e3ccfd05f3f