Aes/entity tests