Add tests for models/file.js