Risk logic implemented in unit test completed