Correctly updating test page to test for nav code before using it