pass the correct entity_type in the spec