Configurable mock for the fs module