Tests for TableBasedGrouper