add mock test for read fail