Improved hook tests

Make sure that new hooks are catch in the test.

//cc @mmun