Add repo.checkoutFile and repo.reset

Was missing those, so I added them. Getting into the mocha `beforeEach` and `before` was confusing but I think I made it work.