Test ReaderBase and TextReader and fix error reporting.