Add lib/fs.js
Update test scripts