anchor.diff:  connect(doc) ->
       [];
   connect(Config) when is_list(Config) ->
  -    put(verbosity, ?TEST_VERBOSITY),
  -    put(sname,     "TEST"),
  -    i("connect -> starting"),
  -    progress("start nodes"),
  -    MgcNode = make_node_name(mgc),
  -    Mg1Node = make_node_name(mg1),
  -    Mg2Node = make_node_name(mg2),
  -    d("connect -> Nodes: "
  -      "~n   MgcNode: ~p"
  -      "~n   Mg1Node: ~p"
  -      "~n   Mg2Node: ~p", [MgcNode, Mg1Node, Mg2Node]),
  -    ok = ?START_NODES([MgcNode, Mg1Node, Mg2Node]),
  -
  +    Pre = fun() ->
  +                  progress("start nodes"),
  +                  MgcNode = make_node_name(mgc),
  +                  Mg1Node = make_node_name(mg1),
  +                  Mg2Node = make_node_name(mg2),
  +                  d("connect -> Nodes: "
  +                    "~n   MgcNode: ~p"
  +                    "~n   Mg1Node: ~p"
  +                    "~n   Mg2Node: ~p", [MgcNode, Mg1Node, Mg2Node]),
  +                  Nodes = [MgcNode, Mg1Node, Mg2Node],
  +                  ok = ?START_NODES(Nodes, true),
  +                  Nodes
  +          end,
  +    Case = fun do_connect/1,
  +    Post = fun(Nodes) ->
  +                   progress("stop nodes"),
  +                   d("stop nodes"),
  +                   ?STOP_NODES(lists:reverse(Nodes))
  +           end,
  +    try_tc(connect, Pre, Case, Post).
  +
  +do_connect([MgcNode, Mg1Node, Mg2Node]) ->
       %% Start the MGC and MGs
       ET = [{text,tcp}, {text,udp}, {binary,tcp}, {binary,udp}],
       progress("start MGC"),
  
positive.code: 
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
  %% p(F) ->
  %%     p(F, []).
  
  
negative.code:     stop(Mgc),
  
      i("connect -> done", []),
      ok.
  
  
  