test pop_heap