PutDocument test.
Fix CanDoBackupAndRestore test.