How to measure capacitor leakage with a side of capacitor reforming