Unit tests for modules/io.js