Hotfix/semrush

Add tests for SemRush and refactor and optimize the old code

<!---
@huboard:{"order":41.5,"milestone_order":84,"custom_state":""}
-->