Added unit test for priority queue.