wrote tests for the Stack class