add hooks to tests config