Add preliminary tests for error event.
Update error event test suite underscore to lodash.
Satisfy error event constraints.
Fix error event triggering * test.
Merge pull request #13 from plediii/enhance-error-event

Add special handling for error events