Add test error handling to html test handler and output; add tests for test errors in test runner tests