Add tests for errors.
Namespace util functions.