Write unit and integration tests with Vitest.
Recent revisions are kept. Restoring one creates a new revision.