To me it sounds like the wiring. If your car has been exposed to a lot of heat, or ran real hot on a few occasions for whatever reason, the coating on the wires sometimes will melt and fuse with another wire. This can potentially cause cross voltage - sending the wrong amount of voltage to the wrong place - thus creating a surge of power on one thing, and a deficit of power on another.
You can also just try tipping the guy doing your inspection a little bit of money, and have him pass you. Never fails for me when I need it.