Most stuff is just tested manually. Add a few consistency tests. No test-framework, just a bare `main()` to see if everything works as expected. Test vigorously.