remove duplicate call to groupExists
Fix test cases for group manager