add tests for NavBar