Extend error class tests.

100% code coverage.