Appliance safety through electrical testing