fix WriteString test