Test the error reporting functionality
Bring error reporting up to scratch

[closes #327][closes #1108]
Merge pull request #1115 from visionmedia/fix/error-reporting

Fix/error reporting