added 1ms sleep in TestDigitalInput