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