Tests for TaskGrouper.