Corrected wrong entity type is returned and tested.