Unit tests to check for valid parameters of cogroup

See #548
I basically copied the test for join and used it also for cogroup.
I also activated the tests for mixed key types.