improved TestFormatWriter's write(String) method