anchor.diff:      [Address1, _] = ?config(restAddresses, Config),
       RegisterParams = {Address1, ?CONTENT_TYPE_HEADER, []},
   
  +    % given
       {ProviderID1, SubscribeParams1} = rest_utils:register_provider(?URLS1, ?REDIRECTION_POINT1, ?CLIENT_NAME1, RegisterParams),
       {ProviderID2, SubscribeParams2} = rest_utils:register_provider(?URLS2, ?REDIRECTION_POINT2, ?CLIENT_NAME2, RegisterParams),
       First = ?getFirstSeq(Node1, Config),
   
  +    % when
       subscribe(0, <<"endpoint1">>, SubscribeParams1),
       subscribe(0, <<"endpoint2">>, SubscribeParams2),
   
  
positive.code:     subscribe(0, <<"endpoint1">>, SubscribeParams1),
      subscribe(0, <<"endpoint2">>, SubscribeParams2),
  
      verify_sent(Node1, <<"endpoint1">>, "{\"seq\":" ++ integer_to_list(First + 1) ++ ",\"space\":{\"id\":\"spacekey1\",\"name\":\"space1\",\"groups\":[],\"users\":[]}}"),
      verify_sent(Node1, <<"endpoint1">>, "{\"seq\":" ++ integer_to_list(First + 2) ++ ",\"space\":{\"id\":\"spacekey2\",\"name\":\"space2\",\"groups\":[],\"users\":[]}}"),
      verify_sent(Node1, <<"endpoint2">>, "{\"seq\":" ++ integer_to_list(First + 2) ++ ",\"space\":{\"id\":\"spacekey2\",\"name\":\"space2\",\"groups\":[],\"users\":[]}}"),
      verify_sent(Node1, <<"endpoint1">>, "{\"seq\":" ++ integer_to_list(First + 4) ++ ",\"space\":{\"id\":\"spacekey4\",\"name\":\"space4\",\"groups\":[],\"users\":[]}}"),
      verify_sent(Node1, <<"endpoint2">>, "{\"seq\":" ++ integer_to_list(First + 4) ++ ",\"space\":{\"id\":\"spacekey4\",\"name\":\"space4\",\"groups\":[],\"users\":[]}}"),
      verify_sent(Node1, <<"endpoint1">>, "{\"seq\":" ++ integer_to_list(First + 5) ++ ",\"space\":{\"id\":\"spacekey5\",\"name\":\"space5\",\"groups\":[\"g1\",\"g2\"],\"users\":[]}}"),
      verify_sent(Node1, <<"endpoint1">>, "{\"seq\":" ++ integer_to_list(First + 6) ++ ",\"space\":{\"id\":\"spacekey6\",\"name\":\"space6\",\"groups\":[],\"users\":[\"u1\",\"u2\"]}}"),
      ok.
  
  
  
negative.code:     SpaceDoc6 = #document{key = SpaceKey6, value = #space{name = <<"space6">>, providers = [ProviderID1], users = [<<"u1">>, <<"u2">>]}},
      ?assertEqual({ok, SpaceKey6}, rpc:call(Node1, space, save, [SpaceDoc6])),
  
      % then
      verify_communication(Node1, <<"endpoint1">>, [
          space_msg(First + 1, SpaceDoc1),
          space_msg(First + 2, SpaceDoc2),
          space_msg(First + 4, SpaceDoc4),
          space_msg(First + 5, SpaceDoc5),
          space_msg(First + 6, SpaceDoc6)
      ], [
          space_msg(First + 3, SpaceDoc3)
      ]),
      verify_communication(Node1, <<"endpoint2">>, [
          space_msg(First + 2, SpaceDoc2),
          space_msg(First + 4, SpaceDoc4)
      ], [
          space_msg(First + 1, SpaceDoc1),
          space_msg(First + 3, SpaceDoc3),
          space_msg(First + 5, SpaceDoc5),
          space_msg(First + 6, SpaceDoc6)
      ]),
      ok.
  
  space_changes_before_subscription(Config) ->
  