             stop = noflo.internalSocket.createSocket()
             c.inPorts.stop.attach stop
             done()
+            return
+          return
+        return
+      return
     beforeEach ->
       out = noflo.internalSocket.createSocket()
       c.outPorts.out.attach out
+      return
     afterEach (done) ->
       c.outPorts.out.detach out
       out = null
       c.shutdown done
+      return
     it 'should not be running initially', ->
       chai.expect(c.network.isRunning()).to.equal false
+      return
     it 'should not be running even when network starts', (done) ->
       c.start (err) ->
-        return done err if err
+        if err
+          done err
+          return
         chai.expect(c.network.isRunning()).to.equal false
         done()
+        return
+      return
     it 'should start generating when receiving a start packet', (done) ->
       c.start (err) ->
-        return done err if err
+        if err
+          done err
+          return
         out.once 'data', ->
           chai.expect(c.network.isRunning()).to.equal true
           done()
+          return
         start.send true
+        return
+      return
     it 'should stop generating when receiving a stop packet', (done) ->
       c.start (err) ->
-        return done err if err
+        if err
+          done err
+          return
         out.once 'data', ->
           chai.expect(c.network.isRunning()).to.equal true
           stop.send true
           setTimeout ->
             chai.expect(c.network.isRunning()).to.equal false
             done()
+            return
           , 10
+          return
         start.send true
+        return
+      return
+    return
+  return

          scope: 'x'
        in1.post new noflo.IP 'closeBracket', 1,
          scope: 'x'

  describe 'Process API mixed with legacy merging two inputs', ->
    c = null
    in1 = null

          when 'closeBracket'
            received.push "#{ip.scope} >"
            brackets.pop()
        return
      wasStarted = false
      checkStart = ->
        chai.expect(wasStarted).to.equal false
        wasStarted = true
        return
      checkEnd = ->
        chai.expect(received).to.eql expected
        chai.expect(wasStarted).to.equal true
        done()
        return
      c.network.once 'start', checkStart
      c.network.once 'end', checkEnd

      c.start (err) ->
        if err
          done err
          return
        in2.post new noflo.IP 'data', 'two',
          scope: 'x'
        in1.post new noflo.IP 'openBracket', 1,
