Add tests for suggested new feature.
Implement integrity-check feature for Encryptor.