Turn API routes into tests for tricky cases.
Recent revisions are kept. Restoring one creates a new revision.