Add full test coverage for models.
Overhaul Tlog parsing somewhat; update tests.