add correction of light_state, and TEST 'RememberAllLightState' passed.
refactoring helper '_checkLightState()'