Usually, Title VII, which is enforced by the EEOC, and the courts allow drug testing, employment testing, or the requirement of a certain level of education, unless these tests or requirements are done specifically to discriminate against one race.
Employment testing is legal as long as the employer does not administer what are called race-norming employment tests, which use different cutoff scores for different races. The test must be the same for every potential employee who is applying for this job, and all potential employees must be tested.
Educational requirements are also considered legal for a job requirement. The courts look at whether the requirement is a qualification for all applicants and whether these types of requirements exceed what is actually needed to perform the job.