Add tests for eventsemitter