Why is my attempt at night vision goggles not working?

This is my first attempt at using scoreboards for accomplishing tasks so I'm still learning. I'm trying to make a golden helmet behave as night vision goggles by giving the player the night vision effect.
Here's what I've done so far:
Create a dummy objective named "nightVision".
Place this command in a clock:
scoreboard players set @a nightVision 0
Then this command:
scoreboard players set @a nightVision 1 {Inventory:[{Slot:103b,tag:{display:{Name:"Nightvision Goggles",Lore:[Equip to see in the dark!]}}}]}
And finally this command:
effect @a[score_nightVision_min:1] 16 30 0 true
I've tested it by wearing the helmet mentioned above on my head and doing a scoreboard test command. It works if I combine steps 3 and 4 into one testfor command and run a comparator out of it:
testfor [player] {Inventory:[{Slot:103b,tag:{display:{Name:"Nightvision Goggles",Lore:[Equip to see in the dark!]}}}]}
But that seems like the very thing scoreboards could be used to avoid.
I've tried taking out the first command because I thought maybe the scores were being reset too fast but it still doesn't work. I've come to the conclusion that my error is either in step 3 or step 4 but I'm not seeing it.
Pictures about "Why is my attempt at night vision goggles not working?"



Do night vision goggles work 7dtd?
Overview. The Night Vision Goggles are a high-tech pair of goggles that allow the wearer to see in very dark conditions. They can only be obtained by looting them, or occasionally appearing at the trader. However, they are most commonly found on zombies wearing military-grade armor.How do you activate night vision goggles?
Usage. The Nightvision Goggles are worn as a helmet, and can be charged in an CESU or better. It is also used in the crafting of the NanoSuit Helmet. The night vision can be activated using alt and the mode switch key (M by default).How long do night vision goggles last?
How Long Do Night Vision Devices Last? Thermal cameras are solid state and with proper care can last a lifetime. I\xb2 systems have a finite lifespan because of the coatings on the tubes. A good Gen 2+ system should give you as much as 5,000 hours of use.Can it be too dark for night vision goggles?
Can You Use Night Vision Goggles in Total Darkness? No, you can't use night vision in total darkness because there is no light to be enhanced.Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Vanessa Loring, Pixabay, Eren Li, Eren Li