Change hook script to make tests