Added test cases for stack