add test to demonstrate pop ordering issue