defined semrush test callback assert function better
remove duplicate code
move backend request logic in a separate method