added code to check for OCR 9

added code and tests to check for OCR 9
all tests green