Added fixture and use of FakeFS (with protection for environments in which FakeFS might not be installed) and improved test coverage (even if with some light specifications).