fix uninstall & add test on document wf state migration