I have the same type of intermittent problem on my 152, but it is the "off" position that is the problem. When I was bringing her home after buying her last March, I had stopped overnight in Missouri for fuel, rest and weather. It was very cold that night and I parked in an open hangar. As per the AFM, for a cold start without preheat, I primed her and was it the process of turning the engine through with the ignition off (keys in my pocket) when it fired and ran for about two seconds. I always treat mags as if they are hot when moving a prop, but it still got my attention.
After a successful start, warm-up, and short taxi to the fuel pumps, I checked the mags for grounding by turning the switch to off at idle rpm and they grounded just fine. I've checked them at every shutdown since and they always ground out. I'm still considering replacing the switch anyway just to be on the safe side. (Magneto P-leads are intact and connected.)