Capacitor self-discharge test device