tests for stack