add OnMetric remote invocation and test