add error condition test for OCR