Add tests for fetchFileContents()