If the only purpose of the test is to measure how well the students can do the job, then the test should be taken at the end of the semester.
The test is useless because the students are already too good at the job.