refactored Join and Leave Step domain tests from integration to unit tests
Merge branch 'CORE-1104' into CORE-1703