fix io-wrapper test code