   describe 'adding a component', ->
     componentName = 'SetSource'
     componentCode = fs.readFileSync(__dirname+'/fixtures/ProduceFoo.coffee', 'utf-8')
+    componentCode = componentCode.replace(/ProduceFoo/g, componentName)
 
     it 'should become available', (done) ->
       receivedAck = false

        chai.expect(payload.library).to.equal options.config.namespace
        chai.expect(payload.name).to.equal 'SetSource'
        chai.expect(payload.language).to.equal 'coffeescript'
        chai.expect(payload.code).to.include "component: 'ProduceFoo'"
        chai.expect(payload.code).to.include "module.exports = ProduceFoo"
        done()

      source =

          chai.expect(protocol).to.equal 'component'
          chai.expect(payload).to.include.keys ['name', 'code', 'language', 'library']
          chai.expect(payload.language).to.equal 'coffeescript'
          chai.expect(payload.code).to.include "component: '#{componentName}'"
          chai.expect(payload.code).to.include "module.exports = #{componentName}"
          receivedAck = true
          console.log 'got ACK'
        else if command == 'component'
