anchor.diff:  %%     get_group_user_privileges(GID, UserId2, UserReqParams1),
   %%
   %% %%     TODO sprawdzic czemu za 3 razem sie wypieprza
  -%%
  -%%     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_group_privileges(GID, UserId2, UserReqParams1),
  -%% %%
  -%% %%     get_group_user_privileges(GID, UserId1, UserReqParams1),
  -%% %%
  -%% %%     get_group_user_privileges(GID, UserId2, UserReqParams1),
  -
       Users = [{UserId1, UserReqParams1}, {UserId2, UserReqParams2}, {UserId3, UserReqParams3}],
  -
       ?assertMatch(ok, group_privileges_check(?GROUP_PRIVILEGES, Users, GID, SID)).
   
   group_spaces_test(Config) ->
  
positive.code:         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).
  
  
  %%
  %%
  %%
  
  %%
  %%%===================================================================
  %%% Setup/teardown functions
  %%%===================================================================
  
negative.code:      Body = jiffy:encode({[
          {name, NewGroupName}
      ]}),
      Response = do_request(
          RestAddress ++ "/groups/" ++ binary_to_list(GID) , Headers, patch, Body, Options
      ),
      ?PRINT("UPDATE RESPONSE"),
      ?PRINT(Response),
      Response.
  
  delete_group(GID, ReqParams) ->
  