Capacitor capacity and withstand voltage test