Maybe it hasn’t been challenged! Maybe lawyers have figured out in some cases a way around Griggs vs Duke, etc.
The testing is pretty much industry-wide, at least according to what I’ve been reading and hearing.
There’s nothing wrong with testing a prospective employee, especially for a technical career. Companies found that colleges don’t always prepare students well enough for these jobs.