I have monster spawner which generates zombies with all kinds of stuff. Command is here
/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {EntityId:Zombie,SpawnData:{CustomName:"Herobrine Zombie", Attributes:[{Name:"generic.followRange",Base:500}],Equipment:[{},{},{},{},{id:"minecraft:leather_helmet",tag:{display:{color:10485760}}}],ActiveEffects:[{Id:18,Amplifier:0,Duration:2147483647}]}}
I would like to testfor for exact these zombies, but for no other. I tried few ways, like detecting name or armor, but I did something wrong or it did not work at all. How would that be done?