Emitter tests should be async.
Added test for reject