fix the hook test