writing tests for active navbar elemtn