Don't special case the test environment
Call handle_emit_exception on exception

- This way, we can catch that method being called with rspec expectations
Add some tests for emit failures
Merge pull request #11 from harrystech/dont_special_case_test

Don't special case the test environment