WIP Fix 251: Improve error handling

Fix #251
Until QUnit supports callbacks for validation of error arguments, you can't use `assert.throws`. You need a custom assertion with a try-catch block where you check the `Error` properties in the catch block.