anchor.diff:  space_privilege_check(space_change_data, Users, _GID, SID) ->
       [{_UserId1, UserReqParams1}, {UserId2, UserReqParams2} | _] = Users,
       %% test if user2 lacks space_change_data privileges
  -    ?assertMatch(bad, check_status(update_space(SID, ?SPACE_NAME2, UserReqParams2))),
  +    ?assertMatch(bad, check_status(update_space(?SPACE_NAME2, SID, UserReqParams2))),
       set_space_privileges(users, SID, UserId2, [space_change_data], UserReqParams1),
  -    ?assertMatch(ok, check_status(update_space(SID, ?SPACE_NAME2, UserReqParams2))),
  +    ?assertMatch(ok, check_status(update_space(?SPACE_NAME2, SID, UserReqParams2))),
       clean_space_privileges(SID, UserId2, UserReqParams1);
   space_privilege_check(space_invite_user, Users, _GID, SID) ->
       [{_UserId1, UserReqParams1}, {UserId2, UserReqParams2} | _] = Users,
  
positive.code: 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({request_error, ?UNAUTHORIZED}, get_space_creation_token_for_group(GID, UserReqParams2)),
      set_group_privileges_of_user(GID, UserId2, [group_create_space_token], UserReqParams1),
      ?assertNotMatch({request_error, _}, get_space_creation_token_for_group(GID, UserReqParams2)),
      clean_group_privileges(GID, UserId2, UserReqParams1);
  
negative.code: space_privilege_check(space_invite_group, Users, _GID, SID) ->
      [{_UserId1, UserReqParams1}, {UserId2, UserReqParams2} | _] = Users,
      %% test if user2 lacks space_invite_user privileges
      ?assertMatch({request_error, ?FORBIDDEN}, get_space_invitation_token(group, SID, UserReqParams2)),
      set_space_privileges(users, SID, UserId2, [space_invite_group], UserReqParams1),
      ?assertNotMatch({request_error, _}, get_space_invitation_token(group, SID, UserReqParams2)),
      clean_space_privileges(SID, UserId2, UserReqParams1);
  space_privilege_check(space_set_privileges, Users, _GID, SID) ->
      [{UserId1, UserReqParams1}, {UserId2, UserReqParams2} | _] = Users,
  