added hardware.lightlevel to test code