add ioutils and writer test case