testing aes methods