Build JavaScript tests that check real behavior.
Recent revisions are kept. Restoring one creates a new revision.