bugfix for JoinROP
test for JoinROP
fix for JoinROP testcase

Signed-off-by: Jacques Nadeau <jacques@apache.org>