Added code to check for OCR 4

Added code and tests to check for OCR 4
all tests green