           return unless received.length is expected.length
           chai.expect(received).to.eql expected
           done()
+          return
         i.send 'Foo'
+        return
       return
 
     it 'should reactivate when receiving new data packets', (done) ->

        c.network.loader.components.Merge = SubgraphMerge
        c.start (err) ->
          done err if err
      g.send gr

  describe 'with a FBP file with INPORTs and OUTPORTs', ->
    file = "#{urlPrefix}spec/fixtures/subgraph.fbp"
    it 'should emit a ready event after network has been loaded', (done) ->

          sg.addInport 'in', 'A', 'in'
          sg.addOutport 'out', 'B', 'out'
          network.loader.registerGraph 'foo', 'AB', sg, (err) ->
            if err
              done err
              return
            network.connect done
            return
          return
        return
      it 'should instantiate the subgraph when node is added', (done) ->
        network.addNode
          id: 'Sub'
          component: 'foo/AB'
        , (err) ->
          if err
            done err
            return
          network.addNode
            id: 'Split'
            component: 'Split'
          , (err) ->
            if err
              done err
              return
            network.addEdge
              from:
                node: 'Sub'
