Don't change the color if there are no specs, and no test results indicates a failure.
Refactor.
Turn off the light when the program ends.