anchor.diff:           {"Upgrade to advanced addon",
               ?_assertMatch({ok,{{_,200,_},_,"OK"}},
                   http:request(post, 
  -                    {"http://localhost:8002/channels/" ++ get(channel_id) ++ "/addon", headers(), content_type(), iolist_to_binary(mochijson2:encode({struct, [
  +                    {"http://localhost:" ++ Port ++ "/channels/" ++ get(channel_id) ++ "/addon", headers(), content_type(), iolist_to_binary(mochijson2:encode({struct, [
                           {"addon", <<"advanced">>}
                       ]}))}, [], []))},
            {"Upgrade addon for non-existent channel",
              ?_assertMatch({ok,{{_,404,_},_,"Not found"}},
                  http:request(post, 
  -                   {"http://localhost:8002/channels/0/addon", headers(), content_type(), iolist_to_binary(mochijson2:encode({struct, [
  +                   {"http://localhost:" ++ Port ++ "/channels/0/addon", headers(), content_type(), iolist_to_binary(mochijson2:encode({struct, [
                          {"addon", <<"advanced">>}
                      ]}))}, [], []))},
            {"Create session",
               fun() ->
                   Ret = http:request(post, 
  -                    {"http://localhost:8002/sessions", headers(), content_type(), iolist_to_binary(mochijson2:encode({struct, [
  +                    {"http://localhost:" ++ Port ++ "/sessions", headers(), content_type(), iolist_to_binary(mochijson2:encode({struct, [
                           {"channel_id", list_to_binary(get(channel_id))},
                           {"name", list_to_binary(AppName)}
                       ]}))}, [], []),
  
positive.code:          {"Create session",
              fun() ->
                  Ret = http:request(post, 
                      {"http://localhost:8002/sessions", headers(), content_type(), iolist_to_binary(mochijson2:encode({struct, [
                          {"channel_id", list_to_binary(get(channel_id))},
                          {"name", list_to_binary(AppName)},
                          {"ps", <<"router">>}
  
negative.code:             end},
           {"Verify source filter",
              fun() ->
                  Ret = http:request(get, {"http://localhost:" ++ Port ++ get(session), headers()}, [], []),
                  ?assertMatch({ok,{{_,200,_},_,_}}, Ret),
                  {ok,{{_,200,_},_,Logs}} = Ret,
                  Logs1 = string:tokens(Logs, "\n"),
  