pattern recognition test examples