anchor.diff:  
   fake_app(Name, Vsn, OutDir) ->
       {ok, App} = rebar_app_info:new(Name, Vsn, OutDir),
  -    compile_fake_appmod(App),
  +    compile_fake_appmod(App, []),
       App.
   
  -compile_fake_appmod(App) ->
  +fake_app(Name, Vsn, OutDir, Apps) ->
  +    {ok, App} = rebar_app_info:new(Name, Vsn, OutDir),
  +    compile_fake_appmod(App, Apps),
  +    App.
  +
  +compile_fake_appmod(App, Apps) ->
       OutDir = rebar_app_info:ebin_dir(App),
       Vsn = rebar_app_info:original_vsn(App),
       Name = rebar_app_info:name(App),
  +    AppsStr = apps_to_str(Apps),
   
       ok = filelib:ensure_dir(filename:join([OutDir, ".touch"])),
   
  
positive.code: set_paths(Config) ->
      State = ?config(state, Config),
      RootDir = filename:split(?config(root_dir, Config)),
      rebar_paths:set_paths([plugins, deps], State),
      PluginPaths = code:get_path(),
      rebar_paths:set_paths([deps, plugins], State),
      DepPaths = code:get_path(),
  
      ?assertEqual(
         RootDir ++ ["_build", "default", "plugins", "lib", "rp_a", "ebin"],
         find_first_instance("rp_a", PluginPaths)
      ),
      ?assertEqual(
         RootDir ++ ["_build", "default", "lib", "rp_b", "ebin"],
         find_first_instance("rp_b", PluginPaths)
      ),
      ?assertEqual(
         RootDir ++ ["_build", "default", "lib", "rp_c", "ebin"],
         find_first_instance("rp_c", PluginPaths)
      ),
      ?assertEqual(
         RootDir ++ ["_build", "default", "lib", "rp_d", "ebin"],
         find_first_instance("rp_d", PluginPaths)
      ),
      ?assertEqual(
         RootDir ++ ["_build", "default", "plugins", "lib",  "rp_e", "ebin"],
         find_first_instance("rp_e", PluginPaths)
      ),
      ?assertEqual(
         RootDir ++ ["_build", "default", "plugins", "lib", "relx", "ebin"],
         find_first_instance("relx", PluginPaths)
      ),
  
  
      ?assertEqual(
         RootDir ++ ["_build", "default", "lib", "rp_a", "ebin"],
         find_first_instance("rp_a", DepPaths)
      ),
      ?assertEqual(
         RootDir ++ ["_build", "default", "lib", "rp_b", "ebin"],
         find_first_instance("rp_b", DepPaths)
      ),
      ?assertEqual(
         RootDir ++ ["_build", "default", "lib", "rp_c", "ebin"],
         find_first_instance("rp_c", DepPaths)
      ),
      ?assertEqual(
         RootDir ++ ["_build", "default", "lib", "rp_d", "ebin"],
         find_first_instance("rp_d", DepPaths)
      ),
      ?assertEqual(
         RootDir ++ ["_build", "default", "plugins", "lib", "rp_e", "ebin"],
         find_first_instance("rp_e", DepPaths)
      ),
      ?assertEqual(
         RootDir ++ ["_build", "default", "lib", "relx", "ebin"],
         find_first_instance("relx", DepPaths)
      ),
      ok.
  
  
negative.code:       "  {vsn, \"", Vsn, "\"}, "
        "  {modules, [",Name,"]}, "
        "  {registered, []}, "
        "  {applications, [" ++ AppsStr ++ "]} "
        " ]}. "],
  
      ok = file:write_file(filename:join([OutDir, <<Name/binary, ".app">>]), AppFile),
  