Test for PriorityQueue iterator