     called = false
     div.on('click', (e) -> called = 1)
     div.on('click', (e) -> called = 2)
-    div.node().__hx__.eventEmitter.emit('click', {})
+    testHelpers.fakeNodeEvent(div.node(), 'click')({})
     called.should.equal(2)
 
   it 'basic event emitter removal should work', ->

    div.on('click', (e) -> called = 2)
    div.on('click', f)
    div.off('click', f)
    div.node().__hx__.eventEmitter.emit('click', {})
    called.should.equal(false)

  it 'namespaced event emitter addition should work', ->
    div = hx.detached('div')
    result1 = false
    div.on('click', 'my-namespace', (e) -> result1 = true)
    div.node().__hx__.eventEmitter.emit('click', {})
    result1.should.equal(true)

  it 'namespaced event emitter addition should not affect other namespaces', ->

    div.on('click', 'my-namespace-2', (e) -> result2 = true)
    div.on('clack', 'my-namespace-1', ((e) -> result3 = true))
    div.off(undefined, 'my-namespace-1')
    testHelpers.fakeNodeEvent(div.node(), 'click')({})
    testHelpers.fakeNodeEvent(div.node(), 'clack')({})
    result1.should.equal(false)
    result2.should.equal(true)
    result3.should.equal(false)
