Make unit tests run again.

Unit tests haven't been working since post-review was removed. This
restores the test functionality, and fixes unit tests that have since
regressed.