test for led on/off