add test for name function of MetricRegistry class when names is null