How to test the resonant frequency of a capacitor