cognitive pattern recognition tests