add test for emit_nowait