Refactor getNav.
Fix getNav test.