Adding simple tests for counters, histograms and cached gauges.