anchor.diff:       %% modify DB after work_phase, before validation
        %% write - modify - commit (rmc)
        [begin
  +          Key = init_new_db_key("abort_prepared_wmc"),
             {TLog, _} =
                 ?CS_API:process_request_list(?CS_API:new_tlog(),
  -                                           [{write, 0, "wmc"}]),
  +                                           [{write, Key, "wmc"}]),
             Pattern = [MC1, MC2, MC3, MC4],
  -          abort_prepared(0, {commit_tlog, TLog}, Pattern,
  +          abort_prepared(Key, {commit_tlog, TLog}, Pattern,
                            calc_wmc_outcome(Pattern))
         end
         || MC1 <- causes(), MC2 <- causes(),
            MC3 <- causes(), MC4 <- causes()],
       ok.
   
  -abort_prepared(_Key, Op, PreOps, ExpectedOutcome) ->
  -    Keys = ?RT:get_replica_keys(?RT:hash_key(0)),
  +abort_prepared(Key, Op, PreOps, ExpectedOutcome) ->
  +    Keys = ?RT:get_replica_keys(?RT:hash_key(Key)),
       DBEntries = get_db_entries(Keys),
       NewDBEntries = [ begin
             NewDBEntry =
  
positive.code:     Config2 = unittest_helper:init_per_suite(Config),
      {priv_dir, PrivDir} = lists:keyfind(priv_dir, 1, Config2),
      unittest_helper:make_ring_with_ids(fun() -> ?RT:get_replica_keys(?RT:hash_key(0)) end, [{config, [{log_path, PrivDir}]}]),
      ?equals(?CS_API:write(0, "initial0"), ok),
      %% make a 2nd write, so versiondec does not result in -1 in the DB
      ?equals(?CS_API:write(0, "initial"), ok),
      Config2.
  
  end_per_suite(Config) ->
  
negative.code:     %% check all combinations of abort / prepared and the corresponding
      %% tx decisions
      %% modify DB and then do operations on the changed DB
      [ begin
            Key = init_new_db_key("abort_prepared_w"),
            abort_prepared(Key, write, [MC1, MC2, MC3, MC4],
                           calc_w_outcome([MC1, MC2, MC3, MC4]))
        end
        || MC1 <- causes(), MC2 <- causes(),
           MC3 <- causes(), MC4 <- causes()],
      ok.
  