fix extras/test bugs due to IO changes
Merge pull request #2047 from HarlanH/testfixes

fix extras/test bugs due to IO changes