tests for MetricsUploader