Use localhost in spec