test for Deque&&PQ