added randomized encryption-decryption tests