How to check capacitor discharge