test cases for undo in test driver