Added test for CHK en/decryption.