Fix some hook tests.