CFY-1123 fixed mock exception raising