anchor.diff:                 [{dbdir, "dbdir"},
                   {bucket_engine, "old-be"},
                   {engines, "old-engines"}]}],
  +
  +    StripValue = fun ([{?METADATA_VCLOCK, _V} | Rest]) ->
  +                         Rest;
  +                     (Other) ->
  +                         Other
  +                 end,
  +    Strip = fun (Config) ->
  +                    lists:map(
  +                      fun ({set, K, V}) ->
  +                              {set, K, StripValue(V)};
  +                          (Other) ->
  +                              Other
  +                      end,
  +                      Config)
  +            end,
  +
       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(), isasl},
  +                              [{path, default_isasl}]},
                                {set, {node, node(), memcached},
                                 [{dbdir, "dbdir"},
                                  {bucket_engine, "new-be"},
  
positive.code:                                           lists:keyreplace(element(1, T), 1, Acc, T)
                                    end, MemcachedCfg, [BucketEnCfg,
                                                        EnginesCfg]),
      [{set, {node, node(), memcached}, NewMemcachedCfg}] ++
          lists:foldl(fun (K, Acc) ->
                              {K,V} = lists:keyfind(K, 1, DefaultConfig),
                              [{set, K, V} | Acc]
                      end, [],
                      [directory,
                       {node, node(), isasl},
  
negative.code:                           [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))
       end}.
  