add test for pop