adding unit tests for new Grouping class methods