refactored stacker tests