test for hooks