unit test for aes