Added the hook test