events emitter unit tests pull request