Fixed the risklib.qa_tests