Basic implementation of Reader::checkSyntax with unittest.