testwriter -> textwriter