tests for Metrics::Uploader
add test for Metrics::IntervalConfig and fix