Test coverage and cleanups

The comment above this is outdated. We don't have a txlog anymore.