infrared sensor unit test