Switch to io.StringIO for reader_test