fix the hook test
Merge branch 'master' into patch-1