add group methods, update tests and parameterize the group id in the example