anchor.diff:      barrel_replicate:start_replication(RepConfig, []),
     %% {ok, Pid} = barrel_replicate:start_replication(SourceConn, TargetConn, []),
     Doc = #{ <<"id">> => <<"a">>, <<"v">> => 1},
  -  {ok, <<"a">>, RevId} = barrel_local:put(Source, Doc, []),
  +  {ok, <<"a">>, RevId} = barrel_local:post(Source, Doc, []),
     {1, [_]} = source_changes(0),
  -  {ok, _} = barrel_local:get(Source, <<"a">>, []),
  -  Doc2 = Doc#{<<"_rev">> => RevId},
  +  {ok, _, _} = barrel_local:get(Source, <<"a">>, []),
     timer:sleep(200),
  -  {ok, Doc2} = barrel_local:get(Target, <<"a">>, []),
  +  {ok, Doc, #{ <<"rev">> := RevId}} = barrel_local:get(Target, <<"a">>, []),
     ok = barrel_replicate:stop_replication(RepId),
     ok.
   
  
positive.code:     barrel_replicate:start_replication(RepConfig, []),
    timer:sleep(200),
  
    {ok, Doc2} = barrel_local:get(Target, <<"targetnotempty">>, []),
    ok = barrel_local:stop_replication(RepId),
    ok.
  
  
negative.code:   TargetConn = proplists:get_value(target_conn, Config),
    DocId = <<"tobedeleted">>,
    Doc = #{ <<"id">> => DocId, <<"v">> => 1},
    {ok, DocId, RevId} = barrel_local:post(Source, Doc, []),
  
    RepConfig = #{<<"source">> => SourceConn,
                  <<"target">> => TargetConn},
    {ok, #{<<"replication_id">> := RepId}} =
      barrel_replicate:start_replication(RepConfig, []),
    {ok, _, _} = barrel_local:delete(Source, DocId, [{rev, RevId}]),
    {error, not_found} = barrel_local:get(Source, DocId, []),
    timer:sleep(400),
    {error, not_found} = barrel_local:get(Target, DocId, []),
  