qa: Adjust tests for dynamic port allocation