             chai.expect(n.processes).not.to.be.empty
             chai.expect(n.processes.Graph).to.exist
             done()
+            return
           , 10
+          return
         g.addNode 'Graph', 'Graph',
           foo: 'Bar'
+        return
       it 'should have transmitted the node metadata to the process', ->
         chai.expect(n.processes.Graph.component.metadata).to.exist
         chai.expect(n.processes.Graph.component.metadata).to.be.an 'object'
         chai.expect(n.processes.Graph.component.metadata).to.eql g.getNode('Graph').metadata
+        return
       it 'adding the same node again should be a no-op', (done) ->
         originalProcess = n.getNode 'Graph'
         graphNode = g.getNode 'Graph'
         n.addNode graphNode, (err, newProcess) ->
-          return done err if err
+          if err
+            done err
+            return
           chai.expect(newProcess).to.equal originalProcess
           done()
+          return
+        return
       it 'should not contain the node after removal', (done) ->
         g.once 'removeNode', ->
           setTimeout ->
             chai.expect(n.processes).to.be.empty
             done()
+            return
           , 10
+          return
         g.removeNode 'Graph'
+        return
       it 'should fail when removing the removed node again', (done) ->
         n.removeNode
           id: 'Graph'

          chai.expect(port.name).to.equal name
          chai.expect(port.node).to.equal 'Func'
          chai.expect(port.getId()).to.equal "Func #{name.toUpperCase()}"

    describe 'with process icon change', ->
      it 'should emit an icon event', (done) ->
        n.once 'icon', (data) ->

      process: (input, output) ->
        output.sendDone
          out: input.get 'in'
        return
  Callback = ->
    return new noflo.Component
      inPorts:
        in: datatype: 'all'
        callback:
