Changed the way the port is set, so tests would pass