Optimized emitter functions if there are no callbacks
added tests