test case should pop from stack