anchor.diff:      update_document(Node, space, <<"s1">>, #{name => <<"updated">>}),
   
       % then
  -    verify_messages(Context, [
  +    verify_messages_present(Context, [
           space_expectation(<<"s1">>, <<"updated">>)
  -    ], []),
  +    ]),
       ok.
   
   space_update_through_users_test(Config) ->
  
positive.code: %%%===================================================================
  %%% Internal functions
  %%%===================================================================
  
  space_expectation(ID, Name) ->
      [{<<"id">>, ID}, {<<"space">>, [{<<"id">>, ID}, {<<"name">>, Name}]}].
  
  user_expectation(ID, Name, Spaces, Groups) ->
      [{<<"id">>, ID}, {<<"user">>, [
          {<<"name">>, Name}, {<<"space_ids">>, Spaces}, {<<"group_ids">>, Groups}
      ]}].
  
  group_expectation(ID, Name) ->
      [{<<"id">>, ID}, {<<"group">>, [{<<"name">>, Name}]}].
  
  expectation_with_rev(Revs, Expectation) ->
      [{<<"revs">>, Revs} | Expectation].
  
  create_group(Node, Name, Users, Spaces) ->
      ?assertMatch({ok, Name}, rpc:call(Node, user_group, save, [#document{
  
negative.code:     update_document(Node, space, <<"s1">>, #{name => <<"updated">>}),
  
      % then
      verify_messages_present(Context, [
          space_expectation(<<"s1">>, <<"updated">>)
      ]),
      ok.
  
  no_user_update_test(Config) ->
  