added newmetrics function to testing factory

Added a MakeMetric function to the testing factory