added a test for stat error when file does not exist.