tests, bugfixes

test for join/flatmap/cogroup