TDSReader:read method throws error when the file is not readable by the user who is running the program. But I am not sure how this can be tested.