 
     output.sendDone
       out: "1#{first}:2#{second0}:2#{second1}:#{c.nodeId}"
+    return
+  return c
 
 describe 'Scope isolation', ->
   loader = null
   before (done) ->
     loader = new noflo.ComponentLoader root
     loader.listComponents (err) ->
-      return done err if err
+      if err
+        done err
+        return
       loader.registerComponent 'process', 'Async', processAsync
       loader.registerComponent 'process', 'Merge', processMerge
       loader.registerComponent 'process', 'MergeA', processMergeA
       loader.registerComponent 'process', 'Unscope', processUnscope
       loader.registerComponent 'process', 'MergeUnscoped', processMergeUnscoped
       done()
-
+      return
+    return
   describe 'pure Process API merging two inputs', ->
     c = null
     in1 = null

            return if brackets.length
            chai.expect(received).to.eql expected
            done()
      in1.post new noflo.IP 'openBracket', 1
      in1.post new noflo.IP 'data', 'one'
      in1.post new noflo.IP 'closeBracket'
      in2.post new noflo.IP 'openBracket', 1
      in2.post new noflo.IP 'data', 'two'
      in2.post new noflo.IP 'closeBracket', 1
    it 'should forward scopes also on unscoped packet', (done) ->
      expected = [
        'x < 1'

            return if brackets.length
            chai.expect(received).to.eql expected
            done()
        return

      in1.post new noflo.IP 'openBracket', 1, scope: 'x'
      in1.post new noflo.IP 'data', 'one', scope: 'x'
      in1.post new noflo.IP 'closeBracket', 1, scope: 'x'
      return
    return
  describe 'Process API with unscoped inport and scopes', ->
    c = null
    in1 = null
