AES tests refactor.