finish test writeTreeToDisk