Added advanced routing test for hooks