test for encryption