Fix makefile and hook test