Add localhost alias in tests to avoid duplication.