Write tests that state the behavior clearly.
unit testing
Only the most recent Revisions are kept. Restoring one saves its content again as the newest.