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

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


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