[Stack] Refactoring - removed duplications from test