Mike, This is a simple circuit to test. As you'd stated "it worked before" then I will apprehensively assume the wiring is fine. That being (hopefully the case) you'll need to test the switch.
One side of the switch (terminal) should light up your test lamp all the time. When a helper depresses the brake pedal, the other terminal should light up.
If the "second" terminal doesn't light up with pedal pressure the switch is defective.
If the "first" terminal is not lit up, then there is an issue in the wiring before the switch.