Adding some tests on hooks

Signed-off-by: emanuele <emanuele45@gmail.com>