Addeed more tests for api/groups.py