Merge pull request #29 from md-systems/8.x-1.x

Update watchdog calls
Use state for the last_optimize value.
Merge pull request #30 from md-systems/state

Use state for the last_optimize value.
Fix for failing tests
Merge pull request #31 from mollux/fixes/testfix

Fix for failing tests
Fixed deprecated WATCHDOG_WARNING constant usage
Replace drupal_strtolower() calls