Add tests for grouping on zero-row data frames