Fix TestWriteDot random order error