Assert on log file errors.
Assert on wrapping error in toError().
Improve test suite.

100% code coverage.