Testing the diode