Bug 906493 - convert test-errors.js to use the new test framework