add tests for emitter