anchor.diff:                  ++ binary_to_list(ID) ++ "/privileges",
               Headers, get, [], Options
           ),
  -    [Priveleges] = get_body_val([privileges], Response),
  -    Priveleges.
  +    Val = get_body_val([privileges], Response),
  +    fetch_value_from_list(Val).
   
   set_space_privileges(UserType, SID, ID, Privileges, ReqParams) ->
       {RestAddress, Headers, Options} = ReqParams,
  
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(bad, check_status(get_space_creation_token_for_group(GID, UserReqParams2))),
      set_group_privileges_of_user(GID, UserId2, [group_create_space_token], 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, Users, GID, _SID) ->
      [{_UserId1, UserReqParams1}, {UserId2, UserReqParams2} | _] = Users,
  
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, ?UNAUTHORIZED}, get_space_invitation_token(group, SID, UserReqParams2)),
      set_space_privileges(users, SID, UserId2, [space_invite_group], UserReqParams1),
      ?assertNotMatch({request_error, ?UNAUTHORIZED},
          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,
  