General-purpose "mental ability tests" are typically illegal for hiring in the US.
https://en.wikipedia.org/wiki/Griggs_v._Duke_Power_Co.
https://en.wikipedia.org/wiki/Griggs_v._Duke_Power_Co.