added tests for routes/undo.js.