refactored joining tests