fix test using localhost with .localdomain suffix