AES fixes; AES test implemented