While going through the recruitment process, the officers do go through psychological testing. It's been 20 years since I did mine, so I can't speak to the test, but it is done through professionals.
On November 6th, 2017. See this statement in context.