test risk_total calculation