mocking http to test fileutils