refactor on recordio
clean up resources in test;
nit in io_test
Merge pull request #12 from fengjingchao/master

Fixes issue #11