Undo last commit and test a new method