Use localhost hostnames in tests to ensure self hosted name resolution