anchor.diff:  
       ?assertMatch(
           ok,
  -        check_status(delete_space_provider(SID, PID, ReqParams))
  +        check_status(delete_space_provider(SID, ProviderId, UserReqParams))
       ),
   
       ?assertMatch(
           [],
           get_space_providers(SID, UserReqParams)
       ).
  +
  +%% space_privileges_test(Config) ->
  +%%     RestAddress = ?config(restAddress, Config),
  +%%     [Node] = ?config(gr_nodes, Config),
  +%%     ReqParams = {RestAddress, ?CONTENT_TYPE_HEADER, []},
  +%%
  +%%     {ProviderId, ProviderReqParams} =
  +%%         register_provider(?URLS1, ?REDIRECTION_POINT1, ?CLIENT_NAME1, Config, ReqParams),
  +%%
  +%%      %% create users
  +%%     UserId1 = create_user(?USER_NAME1, Node),
  +%%     UserId2 = create_user(?USER_NAME2, Node),
  +%%
  +%%     %% authenticate users
  +%%     NewHeaders = auth_user(UserId1, ProviderId, ReqParams, Node),
  +%%     UserReqParams1 = update_req_params(ProviderReqParams, NewHeaders, headers),
  +%%     NewHeaders2 = auth_user(UserId2, ProviderId, ReqParams, Node),
  +%%     UserReqParams2 = update_req_params(ProviderReqParams, NewHeaders2, headers),
  +%%
  +%%     GID = create_group(?GROUP_NAME1, UserReqParams1),
  +%%
  +%%     InvitationToken = get_group_invitation_token(GID, UserReqParams1),
  +%%
  +%%     %% add user to group
  +%%     join_user_to_group(InvitationToken, UserReqParams2),
  +%%
  +%%     %% TODO check user creator privileges
  +%%     get_group_user_privileges(GID, UserId1, UserReqParams1),
  +%%
  +%%     %% TODO check other user privileges
  +%%     get_group_user_privileges(GID, UserId2, UserReqParams1),
  +
  +%%     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),
  +
  +    get_group_user_privileges(GID, UserId2, UserReqParams1),
  +
  +    set_group_user_privileges(GID, UserId2, [group_change_data], UserReqParams1),
  +
  +    get_group_user_privileges(GID, UserId2, UserReqParams1),
  +
  +    set_group_user_privileges(GID, UserId2, [group_change_data], UserReqParams1),
  +
  +    get_group_user_privileges(GID, UserId2, UserReqParams1).
  +
   
   %%
   %%
  
positive.code:     UserReqParams = update_req_params(ProviderReqParams, NewHeaders, headers),
  
      %% check if user data is correct
      ?assertMatch(
          [UserId, ?USER_NAME1],
          read_user(UserReqParams)
      ),
  
      update_user(?USER_NAME2, UserReqParams),
  
      %% check if user data was updated
      ?assertMatch(
          [UserId, ?USER_NAME2],
          read_user(UserReqParams)
      ),
  
       UserId2 = create_user(?USER_NAME2, Node),
  
  
negative.code:     %% TODO check other user privileges
      get_group_user_privileges(GID, UserId2, UserReqParams1),
  
  %%     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),
  
      get_group_user_privileges(GID, UserId2, UserReqParams1),
  
      set_group_user_privileges(GID, UserId2, [group_change_data], UserReqParams1),
  
      get_group_user_privileges(GID, UserId2, UserReqParams1),
  
      set_group_user_privileges(GID, UserId2, [group_change_data], UserReqParams1),
  
      get_group_user_privileges(GID, UserId2, UserReqParams1).
  %%     ,
  
  %%     set_group_user_privileges(
  %%         GID, UserId2, [group_invite_user], UserReqParams1),
  %%
  %%     get_group_user_privileges(GID, UserId2, UserReqParams1),
  %%
  %%     set_group_user_privileges(GID, UserId2, [group_view_data], UserReqParams1),
  
  %%     get_group_user_privileges(GID, UserId2, UserReqParams1).
  
  %%     set_group_user_privileges(GID, UserId2, [], UserReqParams1),
  %%
  %%     get_group_user_privileges(GID, UserId2, UserReqParams1).
  
  %%     ?PRINT(SID),
  %%
  %%     clean_privileges(GID, UserId2, UserReqParams1),
  %%
  %%     get_group_user_privileges(GID, UserId1, UserReqParams1),
  %%
  %%     get_group_user_privileges(GID, UserId2, UserReqParams1),
  
  %%     ?assertMatch(
  %%         ok,
  %%         group_privileges_check(
  %%             ?GROUP_PRIVILEGES, {UserId1, UserReqParams1}, {UserId2, UserReqParams2}, GID, SID
  %%         )
  %%     ).
  
  
  group_spaces_test(Config) ->
      RestAddress = ?config(restAddress, Config),
  