Adding full unit-test coverage to file-handling classes.