Refactoring unit tests, cleaning up the undo/redo logic.