Fix bugs in Hash Join and add hash join test