           outPorts:
             out: {}
         super options
-    Split.getComponent = -> new Split
+    FooSplit.getComponent = -> new FooSplit
     instance = null
     l.libraryIcons.foo = 'star'
     it 'should be available in the components list', ->
-      l.registerComponent 'foo', 'Split', Split
+      l.registerComponent 'foo', 'Split', FooSplit
       chai.expect(l.components).to.contain.keys ['foo/Split', 'Graph']
     it 'should be able to load the component', (done) ->
       l.load 'foo/Split', (err, split) ->

        done()

  describe 'register a component at runtime', ->
    class Split extends noflo.Component
      constructor: ->
        options =
          inPorts:

        chai.expect(split.getIcon()).to.equal 'star'
        done()
    it 'after setting an icon for the Component class, new instances should have that', (done) ->
      FooSplit::icon = 'trophy'
      l.load 'foo/Split', (err, split) ->
        return done err if err
        chai.expect(split).to.be.an 'object'
