Fixes #305. Actually, just added a test plan for new features from #305
(undo for state commands). Previous commits actually implemented the
feature.