Add a test case for risk condition