Fix tests.
Diary entry.
Fix NACKs.
NACK testing.
Merge branch `rewrite` into `master`.