adding a metrics helper to reset the metrics for test