test case for undo method in User
merge