Add test case for simulated io errors.