Fixed TestJoinQuery.