Fixed bugs when undo and redo updated tasks. Added tests for update with search. Passed all tests.