add support for tesseract, ocr; add unit tests