Replaced TestHarnessException with IOException and CheckstyleException, depending on the case it was previously raised