           delay: true
           subscribeGraph: false
         , (err, net) ->
-          return done err if err
+          if err
+            done err
+            return
           network = net
           network.loader.components.Split = Split
           network.loader.components.Merge = SubgraphMerge

        received = []
        o.on 'ip', (ip) ->
          received.push "#{ip.type} #{ip.data}"
        inst.on 'activate', (load) ->
          received.push "ACTIVATE #{load}"
        inst.on 'deactivate', (load) ->
          received.push "DEACTIVATE #{load}"
          return unless received.length is expected.length
          chai.expect(received).to.eql expected
          done()
        inst.start (err) ->
          return done err if err
          i.send 'Foo'
      return

    it.skip 'should activate automatically when receiving data', (done) ->

                node: 'Split'
                port: 'in'
            , (err) ->
              if err
                done err
                return
              chai.expect(network.processes).not.to.be.empty
              chai.expect(network.processes.Sub).to.exist
              done()
              return
            return
          return
        return
      it 'should be possible to start the graph', (done) ->
        network.start done
        return
      it 'should forward IP events', (done) ->
        network.once 'ip', (ip) ->
          chai.expect(ip.id).to.equal 'DATA -> IN Sub()'
