add a test for Stack