adding ocr testing code