Added test for stack