Test file opening failure first