Add tests for usergroups feature