           ['w','o','r','l','d']
         ]
         done()
+      return
     it 'should execute network with simple input and and provide simple output with streams as arrays', (done) ->
       wrapped 'hello there', (err, out) ->
         chai.expect(out).to.eql [

      return done err if err
      loader.registerComponent 'process', 'Async', processAsync
      loader.registerComponent 'process', 'Error', processError
      loader.registerComponent 'process', 'NeverSend', neverSend
      loader.registerComponent 'process', 'Streamify', streamify
      done()

          ['t','h','e','r','e']
        ]
        done()
  describe 'with a graph containing a component supporting only certain values', ->
    graph = null
    wrapped = null
    before (done) ->
      noflo.graph.loadFBP """
      INPORT=Async.IN:IN
      OUTPORT=Values.OUT:OUT
      Async(process/Async) OUT -> IN Values(process/Values)
      """, (err, g) ->
        return done err if err
        graph = g
        wrapped = noflo.asCallback graph,
          loader: loader
        done()
    it 'should execute network with input map and provide output map', (done) ->
      expected ='blue'
      wrapped
        in: expected
      , (err, out) ->
        return done err if err
        chai.expect(out.out).to.eql expected
        done()
    it 'should execute network with simple input and provide simple output', (done) ->
      expected = 'blue'
      wrapped expected, (err, out) ->
        return done err if err
        chai.expect(out).to.eql expected
        done()
    it 'should execute network with wrong map and provide error', (done) ->
      expected = 'red'
      wrapped
        in: 'red'
      , (err) ->
        chai.expect(err).to.be.an 'error'
        chai.expect(err.message).to.contain 'Invalid data=\'red\' received, not in [green,blue]'
        done()
    it 'should execute network with wrong input and provide error', (done) ->
      wrapped 'red', (err) ->
        chai.expect(err).to.be.an 'error'
        chai.expect(err.message).to.contain 'Invalid data=\'red\' received, not in [green,blue]'
        done()
