anchor.diff:      InvitationToken = get_space_invitation_token(groups, SID1, UserReqParams1),
       join_group_to_space(InvitationToken, GID2, UserReqParams2),
   
  -    ?assertMatch(ok, check_status(group_leave_space(GID2, SID1, UserReqParams2))),
  +    ?assertMatch(ok, check_status(group_leaves_space(GID2, SID1, UserReqParams2))),
       ?assertMatch([SID1], get_group_spaces(GID1, UserReqParams1)),
       ?assertMatch(false, is_included([SID1], get_group_spaces(GID2, UserReqParams2))).
   
  
positive.code: group_privilege_check(group_create_space, Users, GID, _SID) ->
      [{_UserId1, UserReqParams1}, {UserId2, UserReqParams2} | _] = Users,
      %% test if user2 lacks group_create_space_token privileges
      ?assertMatch(bad, check_status(create_space_for_group(?SPACE_NAME2, GID, UserReqParams2))),
      set_group_privileges_of_user(GID, UserId2, [group_create_space], UserReqParams1),
      ?assertNotMatch(bad, check_status(create_space_for_group(?SPACE_NAME2, GID, UserReqParams2))),
      clean_group_privileges(GID, UserId2, UserReqParams1);
  group_privilege_check(group_remove_user, Users, GID, _SID) ->
      [{_UserId1, UserReqParams1}, {UserId2, UserReqParams2} , {UserId3, UserReqParams3}| _] = Users,
  
negative.code: 
      join_user_to_group(InvitationToken, UserReqParams2),
  
      ?assertMatch(ok, check_status(user_leaves_group(GID1,UserReqParams2))),
      ?assertMatch([GID1], get_user_groups(UserReqParams1)),
      ?assertMatch(false, is_included([GID1], get_user_groups(UserReqParams2))).
  
  