Applications of an infrared laser scan microscope in device testing