Added test for sending and popping