Added first tests for saving and restoring versions.