Test of inverter with battery connected