Automatic Pattern Recognition Testing