anchor.diff:  % snapshot number in entry less than local number -> abort
   -spec test_rdht_tx_read_validate_should_abort(any()) -> ok.
   test_rdht_tx_read_validate_should_abort(_) ->
  -    Db = ?TEST_DB:init_snapshot(?TEST_DB:new()),
  -    Db = ?TEST_DB:set_entry(Db, db_entry:new(?KEY("key"), ?VALUE("val"), 1)),
  +    Db = ?DB:init_snapshot(?DB:new()),
  +    Db = ?DB:set_entry(Db, db_entry:new(?KEY("key"), ?VALUE("val"), 1)),
       TLogEntry = tx_tlog:new_entry(?read, ?KEY("key"), 1, ?ok, 1, ?value, ?VALUE("new_val")),
       {_NewDb, Vote} = rdht_tx_read:validate(Db, 5, TLogEntry),
       ?equals(Vote, ?abort),
  
positive.code: % snapshot number in entry equals local number -> prepared
  -spec test_rdht_tx_read_validate_should_prepare(any()) -> ok.
  test_rdht_tx_read_validate_should_prepare(_) ->
      Db = ?TEST_DB:init_snapshot(?TEST_DB:new()),
      Db = ?TEST_DB:set_entry(Db, db_entry:new(?KEY("key"), ?VALUE("val"), 1)),
      TLogEntry = tx_tlog:new_entry(?read, ?KEY("key"), 1, ?ok, 4711, ?value, ?VALUE("new_val")),
      {_NewDb, Vote} = rdht_tx_read:validate(Db, 4711, TLogEntry),
      ?equals(Vote, ?prepared),
  
negative.code: % (in this case: decreasing the readlock count) should be applied to both dbs.
  -spec test_rdht_tx_read_commit_with_snap_1(any()) -> ok.
  test_rdht_tx_read_commit_with_snap_1(_) ->
      Db = ?DB:init_snapshot(?DB:new()),
      EntryKey = db_entry:new(?KEY("key"), ?VALUE("val"), 1),
      TmpDb = ?DB:set_entry(Db, db_entry:inc_readlock(EntryKey)),
      NewDb = ?DB:set_snapshot_entry(TmpDb, db_entry:inc_readlock(EntryKey)),
      TLogEntry = tx_tlog:new_entry(?read, ?KEY("key"), 1, ?ok, 1, ?value, ?VALUE("val")),
      CommitDb = rdht_tx_read:commit(NewDb, TLogEntry, ?prepared, 1, 2),
      ?equals(?DB:get_snapshot_entry(CommitDb, ?KEY("key")),
              {true, EntryKey}), % no readlocks in snap db
      ?equals(?DB:get_entry2(CommitDb, ?KEY("key")),
              {true, EntryKey}), % no readlocks in live db
      ok.
  
  