platform/html5: partially fix io for tests.