Assert repo return value is an entity