anchor.diff:      Token = get_group_invitation_token(GID, UserReqParams1),
       join_user_to_group(Token, UserReqParams3),
       %% test if user2 lacks group_remove_user privilege
  -    ?assertMatch(bad, check_status(delete_group_user(GID, UserId3, UserReqParams3))),
  -    set_group_user_privileges(GID, UserId2, [group_remove_user], UserReqParams3),
  -    ?assertMatch(ok, check_status(delete_group_user(GID, UserId3, UserReqParams3)));
  +    ?assertMatch(bad, check_status(delete_group_user(GID, UserId3, UserReqParams2))),
  +    set_group_user_privileges(GID, UserId2, [group_remove_user], UserReqParams1),
  +    ?assertMatch(ok, check_status(delete_group_user(GID, UserId3, UserReqParams2)));
   group_privilege_check(group_remove, Users, GID, _SID) ->
       [{_UserId1, UserReqParams1}, {UserId2, UserReqParams2} | _] = Users,
       %% test if user2 lacks group_remove privileges
  
positive.code:     clean_group_privileges(GID, UserId2, UserReqParams1);
  group_privilege_check(group_join_space, Users, GID, SID) ->
      [{_UserId1, UserReqParams1}, {UserId2, UserReqParams2} | _] = Users,
      InvitationToken = get_space_invitation_token(groups, GID, UserReqParams2),
       %% test if user2 lacks group_join_space privileges
      ?assertMatch(bad, check_status(join_group_to_space(InvitationToken, SID, UserReqParams2))),
      set_group_user_privileges(GID, UserId2, [group_join_space], UserReqParams1),
      ?assertMatch(SID, check_status(join_group_to_space(InvitationToken, GID, UserReqParams2))),
      clean_group_privileges(GID, UserId2, UserReqParams1);
  group_privilege_check(group_leave_space, Users, GID, SID) ->
      [{_UserId1, UserReqParams1}, {UserId2, UserReqParams2} | _] = Users,
      InvitationToken = get_space_invitation_token(groups, SID, UserReqParams2),
      set_group_user_privileges(GID, UserId2, [group_join_space], UserReqParams1),
      join_group_to_space(InvitationToken, GID, UserReqParams2),
      %% test if user2 lacks group_leave_space privileges
      ?assertMatch(bad, check_status(group_leave_space(GID, SID, UserReqParams2))),
      set_group_user_privileges(GID, UserId2, [group_join_space, group_leave_space], UserReqParams1),
      ?assertMatch(ok, check_status(group_leave_space(GID, SID, UserReqParams2))),
      clean_group_privileges(GID, UserId2, UserReqParams1);
  group_privilege_check(group_create_space_token, Users, GID, _SID) ->
      [{_UserId1, UserReqParams1}, {UserId2, UserReqParams2} | _] = Users,
      %% test if user2 lacks group_create_space_token privileges
      ?assertMatch(bad, check_status(get_space_creation_token_for_group(GID, UserReqParams2))),
      set_group_user_privileges(
          GID, UserId2, [group_create_space_token, group_leave_space], UserReqParams1
      ),
      ?assertNotMatch(bad, check_status(get_space_creation_token_for_group(GID, UserReqParams2))
      ), clean_group_privileges(GID, UserId2, UserReqParams1);
  group_privilege_check(group_create_space_token, 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))),
  
negative.code: 
      SID = create_space_for_user(?SPACE_NAME1, UserReqParams2),
  %%
  %     set_group_user_privileges(GID, UserId2, [group_view_data, group_change_data], UserReqParams1),
  %
  %%     get_group_user_privileges(GID, UserId2, UserReqParams1),
  %% %%
  %%     set_group_user_privileges(GID, UserId2, [group_change_data], UserReqParams1),
  