             throw new Error 'Unexpected network start'
           c.network.once 'end', ->
             throw new Error 'Unexpected network end'
-          g.addInitial 'world', 'Pc', 'in'
+          c.network.addInitial
+            from:
+              data: 'world'
+            to:
+              node: 'Pc'
+              port: 'in'
+           , (err) ->
+             return done err if err
           setTimeout ->
             chai.expect(received).to.eql expected
             done()

      c.network.on 'disconnect', receiveDisconnect
      c.network.once 'end', checkEnd

      c.network.graph.addInitial 'foo', 'Leg2', 'in'
      c.start (err) ->
        return done err if err
        in1.connect()
        in1.beginGroup 1
        in1.beginGroup 'a'
        in1.send 'baz'
        in1.endGroup()
        in1.endGroup()
        in1.disconnect()
    it 'should forward new-style brackets as expected regardless of sending order', (done) ->
      expected = [
        'CONN'

          wasStarted = false
          c.network.once 'start', checkStart
          c.network.once 'end', checkEnd
          c.network.addInitial
            from:
              data: 'world'
            to:
              node: 'Pc'
              port: 'in'
           , (err) ->
             return done err if err
          return
        chai.expect(received).to.eql expected
        done()
