anchor.diff:      Db = ?TEST_DB:init_snapshot(InitDb),
       Db = ?TEST_DB:set_snapshot_entry(Db, db_entry:new("foo", "bar", 5)),
       DelDb = ?TEST_DB:delete_snapshot(Db),
  -    ?equals(false, ?TEST_DB:snapshot_is_running(DelDb)),
  +    ?equals(?TEST_DB:snapshot_is_running(DelDb), false),
       ok.
   
   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
positive.code:     NewDb = ?TEST_DB:set_snapshot_entry(TmpDb, db_entry:set_writelock(Entry, 1)),
      TLogEntry = tx_tlog:new_entry(rdht_tx_write, "key", 1, value, 1, ?value, "new_val"),
      CommitDb = rdht_tx_write:commit(NewDb, TLogEntry, ?prepared, 1, 2),
      SnapEntry = ?TEST_DB:get_snapshot_entry(CommitDb, "key"),
      ?equals({true, {"key", "new_val", false, 0, 2}}, SnapEntry), % no lock in snap db
      LiveEntry = ?TEST_DB:get_entry2(CommitDb, "key"),
      ?equals({true, {"key", "new_val", false, 0, 2}}, LiveEntry), % no lock in live db
      ok.
  
  % "new" transaction -> changes only on live db, snapshot db remains untouched
  
negative.code:     Db = ?TEST_DB:set_entry(Db, db_entry:new("key", "val", 1)),
      TLogEntry = tx_tlog:new_entry(rdht_tx_write, "key", 1, value, 1, ?value, "new_val"),
      {NewDb, _Vote} = rdht_tx_write:validate(Db, 1, TLogEntry),
      ?equals(?TEST_DB:get_snapshot_entry(NewDb, "key"),
              {true, {"key", "val", false, 0, 1}}), % no lock in snap db
      ?equals(?TEST_DB:get_entry2(NewDb, "key"),
              {true, {"key", "val", 1, 0, 1}}), % lock in live db
      ok.
  
  % for "old" transactions (as in TM snapnr 1 is lesser than local snapnr 2), changes should be applied to both dbs.
  