test(dirs): add test on fs.stat exception