Fixes CollectorService tests.