test hook script