bug fix in JoinCompiler
Add testRightJoin for HashJoinTest