At the company where I work there is a written test of language/logic/math that applicants for jobs have to take. This has had the effect that almost nobody at this company is stupid or incompetent. They are also easy to work with - I would guess partly because social ability is correlated to intelligence.
I suspect this test is the single biggest reason for the success of the company.