added test for hooks