Add tests for riskMetric