Fix hooks test

Signed-off-by: Michal Čihař <michal@cihar.com>