add testcase for writing to a StringIO instance