added missing methods declared in plugins/file.js that were not in mock/file.js