Electrical diagnostics for high voltage tests in MITICA