more tests for hooks