refactored Join and Leave Step domain tests from integration to unit tests