refactoring unit tests for stack reusability