fix testStringWriteHashMap