Add test for hooks

I think the current approach is the right approach. Recursive hook invocation seems very fancy for what we're trying to get here.