Document and test convertToMetricName.