Added tests for NavBar

Added unit tests for NavBar title and buttons.