Fix failing test in master_files_controller