Fix uniter test for the periodic execution of the collect-metrics hook.
Merge pull request #920 from tasdomas/uniter-collect-metrics-test-fix

Fix uniter test for the periodic execution of the collect-metrics hook.