addGrouping unit tests