anchor.diff:                  key = Key,
                   value = #some_record{field1 = 1, field2 = <<"abc">>, field3 = {test, tuple}}
               }])
  -        end,
  +    end,
   
       [?assertMatch({ok, _}, CreateDocFun(Key)) || Key <- Keys],
   
       Ret1 = ?call_store(rand_node(Nodes), list, [Level, some_record, ?GET_ALL, []]),
       ?assertMatch({ok, _}, Ret1),
       {ok, Objects1} = Ret1,
  -    ReceivedKeys = lists:map(fun(#document{key = Key}) -> Key end, Objects1 -- Objects0),
  +    ReceivedKeys = lists:map(fun(#document{key = Key}) ->
  +        Key end, Objects1 -- Objects0),
   
       ?assertMatch(ObjCount, erlang:length(Objects1) - erlang:length(Objects0)),
       ?assertMatch([], ReceivedKeys -- Keys),
  
positive.code: local_access_only(Node, Level) ->
      Key = rand_key(),
  
      ?assertMatch({ok, Key},
          ?call_store(Node, create, [Level,
              #document{
                  key = Key,
                  value = #some_record{field1 = 1, field2 = <<"abc">>, field3 = {test, tuple}}
              }])),
  
      ?assertMatch({error, already_exists},
          ?call_store(Node, create, [Level,
              #document{
                  key = Key,
                  value = #some_record{field1 = 1, field2 = <<"abc">>, field3 = {test, tuple}}
              }])),
  
      ?assertMatch({ok, true},
          ?call_store(Node, exists, [Level,
              some_record, Key])),
  
      ?assertMatch({ok, #document{value = #some_record{field3 = {test, tuple}}}},
          ?call_store(Node, get, [Level,
              some_record, Key])),
  
      Pid = self(),
      ?assertMatch({ok, Key},
          ?call_store(Node, update, [Level,
              some_record, Key, #{field2 => Pid}])),
  
      ?assertMatch({ok, #document{value = #some_record{field2 = Pid}}},
          ?call_store(Node, get, [Level,
              some_record, Key])),
  
      ?assertMatch(ok,
          ?call_store(Node, delete, [Level,
              some_record, Key, fun() -> false end])),
  
      ?assertMatch({ok, #document{value = #some_record{field2 = Pid}}},
          ?call_store(Node, get, [Level,
              some_record, Key])),
  
      ?assertMatch(ok,
          ?call_store(Node, delete, [Level,
              some_record, Key])),
  
      ?assertMatch({error, {not_found, _}},
          ?call_store(Node, get, [Level,
              some_record, Key])),
  
      ?assertMatch({error, {not_found, _}},
          ?call_store(Node, update, [Level,
              some_record, Key, #{field2 => self()}])),
  
      ok.
  
  
negative.code:         value = #some_record{field1 = 3}
      },
  
      %% Create some documents and links
      ?assertMatch({ok, _}, ?call_store(Worker1, some_record, create, [Doc1])),
  
      ?assertMatch({ok, _}, ?call_store(Worker2, some_record, create, [Doc2])),
  
      ?assertMatch({ok, _}, ?call_store(Worker1, some_record, create, [Doc3])),
  
      ?assertMatch(ok, ?call_store(Worker2, add_links, [
          Level, Doc1, [{link2, Doc2}, {link3, Doc3}]
      ])),
  
      %% Fetch all links and theirs targets
      Ret0 = ?call_store(Worker2, fetch_link_target, [Level, Doc1, link2]),
  