Added a test for navbar view