Added some hook tests.