write tests for active nav bar element