First tranche of fs tests.

Writing these tests would go a lot faster if I didn't keep running
into bugs in Node.