Fix yoda condition in File test