Added test for IOException