test cases for pop and shift