* Refactor some functions to improve unit test coverage. * Use the "coverage" module if available along with unit tests.