The transformer is used for the high voltage for Zener diode test. A charged capacitor will burn the microprocessor.