Capacitor protection test method