tests for Join and GroupJoin
fix bugs in GroupJoin implementation