Refactor tests for active navbar element pass