use function replace Event
add error test
finish test
Merge pull request #1 from shepherdwind/master

Remove EventEmitter