add undo state tests, #68, fix a bug of update active_delegate_list_id
clean up, assert your chain names
Merge pull request #109 from HackFisher/master

Fort chain undo state test, fix bug, etc.