added tests for groups