Added test to encrypt