Remove use of "localhost" in unit tests