test case for undo added