Fix the tests and the doc for the new feaute in the new `hooks` version