Passing test of several pop calls in sequence

Refactored test class