Add a [UnitTest] for priority queue

And priority queue passes the test.