Photosensor test program