Added tests for Undo object, to verify behavior.