fix undo_state_test, your chain could be longer than my chain
merge from upstream/master
Merge pull request #110 from HackFisher/master

fix undo_state_test, your chain could be longer than my chain