entity metadata tests