enable File to be mocked