upload-files: add migration and rspec tests for ClassMaterial