We are getting an error when running this test in that if the port is in use, the test will just hang and never fail. I see two issues here: 1. It would be good if the test could use a random port. 2. test.py should abort the test after 60s.