If the yellow gem was on the wizard's clothes they don't count, and the situation with the axe is a bug that they already told the developer about.
So gems in gear count, but gems in clothes do not? Is that a complete concept, or only if they also have a weapon-based gem?
Yes, only gems in equipment are valid, any gem in clothing does not count.