run tests for encryption