I would think she would need to take the test while she still has valid status or she won't get the results soon enough to have time to complete the work permit application and restoration.
IMO - She is very short on time and needs to have a back up plan if none of this pans out.