fix a case with no file.stat and add tests
0.1.4