working unit tests: restore from object, save, open, validate_password, unlock, lock #20