Some fixes
Add test_io.c