test for join