addressed feedback
Added test for noEmitOnError