added a test for listing available ports