The unit test suite currently has only a few test cases, and most functionality is not exercised by tests.
Increase the coverage of the unit test suite, aiming for 100% coverage of all functionality.