It was a Supreme Court case, Griggs vs Duke Power, in 1970. Since then, employers cannot use IQ tests or standardized tests, since they were deemed discriminatory against minorities.
A standardized test that tests your ability to do the job is still allowable — presumably even if minorities fare worse on it.