Add a test for allocating tcp ports and reaching them on localhost