writing tests for active navbar element