Make sure error is handled in TestScannerReadFile; update docs