fixed server port retrieval in hello world test and two deployments test