Adding test for priority queue