A test that .groupAll.size communicates at most M tuples where M are the number of map-tasks would be good. Might be possible with checking the counters after the job.