Added tests for join