test for hook