Fixed test for priority q