refactored duplication in test
undo/redo supported in toolbar