Writing tests for active navbar element