chores(nav tests) Added tests for nav.js