Add light sensor test and single test mode