Add tests for join.