Add a test for the new getNavItemByUrl method.