add tests for stack