     div.on('click', 'my-namespace-2', (e) -> result2 = true)
     div.on('clack', 'my-namespace-1', ((e) -> result3 = true))
     div.off('click', 'my-namespace-1')
-    div.node().__hx__.eventEmitter.emit('click', {})
-    div.node().__hx__.eventEmitter.emit('clack', {})
+    testHelpers.fakeNodeEvent(div.node(), 'click')({})
+    testHelpers.fakeNodeEvent(div.node(), 'clack')({})
     result1.should.equal(false)
     result2.should.equal(true)
     result3.should.equal(true)
    div = hx.detached('div')
    called = false
    div.on 'click', (e) -> called = true
    div.node().__hx__.eventEmitter.emit('click', {})
    called.should.equal(true)

  it 'basic event emitter replacement should work', ->

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

