Testing Safety of Electrical Devices