added grouping tests