Test for hook