added test classes, corrected a few minor bugs
added AES tests