add tests for pop