fixed test for stack