anchor.diff:      ?assertNotMatch({badrpc, _}, rpc:call(Node1, provider_subscriptions, renew, [ProviderID, LastSeen, Endpoint])).
   
   verify_sent(Node, Endpoint, Body) ->
  -    verify_received(Node, Endpoint, Body, 50).
  +    verify_sent(Node, Endpoint, Body, 50).
   
  -verify_received(Node, Endpoint, Body, 0) ->
  +verify_sent(Node, Endpoint, Body, 0) ->
       ?assert({error, timeout_for, Node, Endpoint, Body});
   
  -verify_received(Node, Endpoint, Body, Retries) ->
  -    Result = mock_capture(Node, [first, http_client, post, [Endpoint, '_', Body], 3]),
  +verify_sent(Node, Endpoint, Body, Retries) ->
  +    Result = mock_capture(Node, [first, http_client, post, [Endpoint, '_', list_to_binary(Body)], 3]),
       case Result of
           {badrpc, _} ->
               timer:sleep(500),
  -            verify_received(Node, Endpoint, Body, Retries - 1);
  +            verify_sent(Node, Endpoint, Body, Retries - 1);
           _ ->
               ok
       end.
  
positive.code: %%% API functions
  %%%===================================================================
  
  all() -> ?ALL([space_changes_after_subscription]).
  
  space_changes_after_subscription(Config) ->
      [Node1, _] = ?config(oz_worker_nodes, Config),
      ProviderID = <<"provider_id_1">>,
  
      subscribe(Node1, ProviderID, 0, "provider_endpoint_1"),
  
      SpaceKey = <<"space_key">>,
      SpaceDoc = #document{key = SpaceKey, value = #space{name = <<"space">>, providers = [ProviderID]}},
      ?assertEqual({ok, SpaceKey}, rpc:call(Node1, space, save, [SpaceDoc])),
  
      SpaceKey2 = <<"space_key2">>,
      SpaceDoc2 = #document{key = SpaceKey2, value = #space{name = <<"space2">>, providers = [ProviderID]}},
      ?assertEqual({ok, SpaceKey2}, rpc:call(Node1, space, save, [SpaceDoc2])),
  
      verify_sent(Node1, "provider_endpoint_1", <<"{\"seq\":2,\"space\":{\"id\":\"space_key\",\"name\":\"space\",\"groups\":[],\"users\":[]}}">>),
      verify_sent(Node1, "provider_endpoint_1", <<"{\"seq\":3,\"space\":{\"id\":\"space_key2\",\"name\":\"space2\",\"groups\":[],\"users\":[]}}">>),
      ok.
  
  
  
negative.code: %% API
  -export([all/0, init_per_suite/1, end_per_suite/1]).
  -export([init_per_testcase/2, end_per_testcase/2]).
  -export([space_changes_after_subscription/1, space_changes_before_subscription/1]).
  
  -define(getFirstSeq(W, Config),
      begin
  