with tests for EntityBadge