test case for hooks send from a non-default view