added TestReadError()