If by "in the diverted" you mean the three it locks up in the playfield, I had similar issues with mine - flaky switch.
One of my switches intermittently is not seen as closed, depending upon how the ball is sitting in the lock - I can slightly bump the machine, and it'll jiggle it just enough to have the switch recognized.
You may be dealing with a similar situation, since you can activate the switches in test mode and have no issues - mine was the same.
I've been able to slightly bend the wire/adjust the switch to change how it sits when the ball is in place to improve performance, but since it still acts up occasionally, I'm just going to swap out the switch at some point.