I think TestFail should not be here since it is just a api module.
BTW, you should catch IOError instead of _ALL_ Exception.