(#108) - ensure emit() for user error

Turns out your version of the code was fine, @neojski.  We are emitting the error locally when the user has an error in their map or reduce function, which is perfect.

These changes to the tests confirm that we're correctly emitting the error.