HOSTNAME defaults to "localhost" in tests instead of relying on hostname from socket