added test cases for join.go