Fix testCreateGroups