Add unit tests for ported filesystem functions.