rewriting test to use allocated port rather then fixed port.