Modified test cases to pick up available ports