Fix adaptive dimming timeout

Relates NEMO#701

[mce] Fix adaptive dimming timeout
*dirty* [unittests] Initial commit