test(nav.spec.js) Refactor the nav controller tests