unit test for priority queue total count