Added tests for RiskFactor.