TST: clean up some tests in the io module.