Add more tests for io.jl