Add the mono-i/o test.
Fix the bug of the mono-i/o test.