updating routes and adding test for the new jobs/:id/cancel endpoint