lets use $file->isValid and the already existing `test` argument in the UploadedFile constructor