       loader.registerComponent 'process', 'Generator', processGenerator
       loader.registerComponent 'legacy', 'Sync', legacyBasic
       done()
-
+      return
+
+    return
   describe 'recognizing API level', ->
     it 'should recognize legacy component as such', (done) ->
       loader.load 'legacy/Sync', (err, inst) ->
-        return done err if err
+        if err
+          done err
+          return
         chai.expect(inst.isLegacy()).to.equal true
         done()
+        return
       return
     it 'should recognize Process API component as non-legacy', (done) ->
       loader.load 'process/Async', (err, inst) ->
-        return done err if err
+        if err
+          done err
+          return
         chai.expect(inst.isLegacy()).to.equal false
         done()
+        return
       return
     it 'should recognize Graph component as non-legacy', (done) ->
       loader.load 'Graph', (err, inst) ->
-        return done err if err
+        if err
+          done err
+          return
         chai.expect(inst.isLegacy()).to.equal false
         done()
-      return
-
+        return
+      return
+    return
   describe 'with single Process API component receiving IIP', ->
     c = null
     g = null

      Sync OUT -> IN2 NonSending
      "
      noflo.graph.loadFBP fbpData, (err, graph) ->
        return done err if err
        g = graph
        loader.registerComponent 'scope', 'Connected', graph
        loader.load 'scope/Connected', (err, instance) ->
          return done err if err
          c = instance
          out = noflo.internalSocket.createSocket()
          c.outPorts.out.attach out
          done()
    afterEach (done) ->
      c.outPorts.out.detach out
      out = null
      c.shutdown done
    it 'should execute and finish', (done) ->
      expected = [
        'DATA helloNonSendingSync'

    output.send
      out: data + c.nodeId
    output.done()
    return
  return c

processBracketize = ->
  c = new noflo.Component
