pattern recognition test with answers