Fix assertions in 'test/io.jl'