added tests for nav bar