anchor.diff:    {ok, Doc2, _} = barrel_local:get(<<"testdb">>, DocId, []),
     Doc3 = Doc2#{ v => 2},
     {ok, DocId, RevId2} = barrel_local:put(<<"testdb">>, Doc3, [{rev, RevId}]),
  -  {ok, Doc4, _} = barrel_local:get(<<"testdb">>, DocId, [{history, true}]),
  -  Revisions = barrel_doc:parse_revisions(Doc4),
  -  Revisions == [RevId2, RevId].
  +  {ok, Doc3, Meta} = barrel_local:get(<<"testdb">>, DocId, [{history, true}]),
  +  Revisions = [RevId2, RevId],
  +  Revisions = barrel_doc:parse_revisions(Meta).
   
   put_rev(_Config) ->
     Doc = #{<<"v">> => 1},
  
positive.code:   History = [NewRev, RevId],
    Deleted = false,
    {ok, DocId, _RevId3} = barrel_local:put_rev(<<"testdb">>, Doc4, History, Deleted, []),
    {ok, Doc5, _} = barrel_local:get(<<"testdb">>, DocId, [{history, true}]),
    Revisions = barrel_doc:parse_revisions(Doc5),
    Revisions == [RevId2, RevId].
  
  
  fold_by_id(_Config) ->
  
negative.code:   {ok, Doc2, _Meta4} = barrel_local:get(<<"testdb">>, <<"a">>, []),
    {ok, <<"a">>, _RevId2} = barrel_local:delete(<<"testdb">>, <<"a">>, [{rev, RevId2}]),
    {error, not_found} = barrel_local:get(<<"testdb">>, <<"a">>, []),
    {ok, <<"a">>, _RevId3} = barrel_local:post(<<"testdb">>, Doc, []).
  
  
  revision_conflict(_Config) ->
    Doc = #{ <<"id">> => <<"a">>, <<"v">> => 1},
    {ok, _, RevId} = barrel_local:post(<<"testdb">>, Doc, []),
    {ok, Doc1, _} = barrel_local:get(<<"testdb">>, <<"a">>, []),
    Doc2 = Doc1#{ <<"v">> => 2 },
    {ok, <<"a">>, _RevId2} = barrel_local:put(<<"testdb">>, Doc2, [{rev, RevId}]),
  