I just went through a whole lot with mine... glad you were able to verify the bulb worked.
Follow George's advice... many times these sensors can be cleaned out, too.
If you absolutely end up needing a new one, here's a thread I've got saved in my subscriptions for a cheaper alternative:
Replacement for 84222-12010 switch
If the sensor checks out, however, there remains the possibility that the CDL is not locking, even if you hear the actuator motor running. That's the issue I ran into.
As George said... first thing is to test the sensor.
Good luck!