added EmptyStackException and a new test to verify that the exception is raised