anchor.diff:      InitDb = ?TEST_DB:new(),
       Db = ?TEST_DB:init_snapshot(InitDb),
       Db = ?TEST_DB:set_snapshot_entry(Db, db_entry:new("foo", "bar", 5)),
  -    ?equals({false, {"key", empty_val, false, 0, -1}}, ?TEST_DB:get_snapshot_entry(Db, "key")),
  -    ?equals({true, {"foo", "bar", false, 0, 5}}, ?TEST_DB:get_snapshot_entry(Db, "foo")),
  +    ?equals(?TEST_DB:get_snapshot_entry(Db, "key"), {false, {"key", empty_val, false, 0, -1}}),
  +    ?equals(?TEST_DB:get_snapshot_entry(Db, "foo"), {true, {"foo", "bar", false, 0, 5}}),
       ok.
   
   -spec test_delete_from_snapshot_table(any()) -> ok.
  
positive.code:     Db = ?TEST_DB:set_entry(Db, db_entry:new("key", "val", 1)),
      Db = ?TEST_DB:set_entry(Db, db_entry:new("123", "456", 0)),
      Db = ?TEST_DB:copy_value_to_snapshot_table(Db, "foo"),
      ?equals({false, {"key", empty_val, false, 0, -1}}, ?TEST_DB:get_snapshot_entry(Db, "key")),
      ?equals({false, {"123", empty_val, false, 0, -1}}, ?TEST_DB:get_snapshot_entry(Db, "123")),
      ?equals({false, {"bar", empty_val, false, 0, -1}}, ?TEST_DB:get_snapshot_entry(Db, "bar")),
      ?equals({true, {"foo", "bar", false, 0, 0}}, ?TEST_DB:get_snapshot_entry(Db, "foo")),
      ok.
  
  -spec test_set_get_for_snapshot_table(any()) -> ok.
  
negative.code:     Db = ?TEST_DB:set_entry(Db, db_entry:new("key", "val", 4711)),
      Db = ?TEST_DB:copy_value_to_snapshot_table(Db, "key"),
      ClearDb = ?TEST_DB:init_snapshot(Db),
      ?equals(?TEST_DB:get_snapshot_entry(ClearDb, "foo"), {false, {"foo", empty_val, false, 0, -1}}),
      ?equals(?TEST_DB:get_snapshot_entry(ClearDb, "key"), {false, {"key", empty_val, false, 0, -1}}),
      ?equals(?TEST_DB:get_entry2(ClearDb, "key"), {true, {"key", "val", false, 0, 4711}}),
      ClearDb = ?TEST_DB:copy_value_to_snapshot_table(ClearDb, "key"),
      ?equals(?TEST_DB:get_snapshot_entry(ClearDb, "key"), {true, {"key", "val", false, 0, 4711}}),
      ok.
  
  -spec test_delete_snapshot(any()) -> ok.
  