Unit tests for modules/io.js.
Merge pull request #257 from jpbackman/add-io-unit-tests

Unit tests for modules/io.js