anchor.diff:                            [X || {set, directory, _} = X <- Changes]),
   
                {set, _, NewMemcached} = lists:keyfind({node, node(), memcached}, 2, Changes),
  -             ?assertEqual({dbdir, "dbdir"}, lists:keyfind(dbdir, 1, NewMemcached)),
  -
  -             ?assertMatch({set, {node, Node, memcached},
  -                           [{?METADATA_VCLOCK, _VClock} | _]} when Node =:= node(),
  -                          lists:keyfind({node, node(), memcached}, 2, Changes)),
  -             ?assertMatch({set, {node, Node, isasl},
  -                           [{?METADATA_VCLOCK, _VClock} | _]} when Node =:= node(),
  -                          lists:keyfind({node, node(), isasl}, 2, Changes)),
  -             ?assertMatch({set, {node, Node, ns_log},
  -                           [{?METADATA_VCLOCK, _VClock} | _]} when Node =:= node(),
  -                          lists:keyfind({node, node(), ns_log}, 2, Changes))
  +             ?assertEqual({dbdir, "dbdir"}, lists:keyfind(dbdir, 1, NewMemcached))
        end}.
   
   prefix_replace_test() ->
  
positive.code:                                           lists:keyreplace(element(1, T), 1, Acc, T)
                                    end, MemcachedCfg, [BucketEnCfg,
                                                        EnginesCfg]),
  
      VClock = vclock:increment(node(), vclock:fresh()),
      AddVClock = fun (Value) ->
                          [{?METADATA_VCLOCK, VClock} | Value]
                  end,
  
      [{set, {node, node(), memcached}, AddVClock(NewMemcachedCfg)}] ++
          lists:foldl(fun (K, Acc) ->
                              {K,V} = lists:keyfind(K, 1, DefaultConfig),
                              V1 = case K of
                                       {node, Node, _K} when node() =:= Node ->
                                           AddVClock(V);
                                       _Otherwise ->
                                           V
                                   end,
                              [{set, K, V1} | Acc]
                      end, [],
                      [directory,
                       {node, node(), isasl},
  
negative.code:                [{dbdir, "dbdir"},
                  {bucket_engine, "old-be"},
                  {engines, "old-engines"}]}],
      Res = do_upgrade_config_from_1_6_to_1_7([OldCfg], DefaultCfg),
      ?assertEqual(lists:sort([{set, directory, default_directory},
                               {set, {node, node(), isasl}, [{path, default_isasl}]},
                               {set, {node, node(), memcached},
                                [{dbdir, "dbdir"},
                                 {bucket_engine, "new-be"},
  