Fix Error handling for generator

A generator raising an exception will now correctly emit an `error` event.
This can be used in unit test as the error event is now binded between the generator and its run context. 
this actually won't happen because we are either in the `process` case or in the `process.domain` case. Anyway i have create a sub `describe` with proper `beforeEach` and `afterEach`