Add unit tests for ported filesystem functions.

I've just written some unit tests in the style @tarruda [did](https://github.com/neovim/neovim/commit/d04ca90f5c3aca60641b2ee63931d66f593bbbd3) for filesystem functions I've already ported.
Ignore until we'll have finally found a decision in #207.