Set http, driver and cluster ports to 0 in tests to guarantee getting an available port
incorporate suggestions from review 191