Improved IO test