Support checking for errors.

XProc Test Suite:
282 of 771 tests running. 96 of 279 assertions failed. (24% test coverage)