There is no equivalent API call in Marketing Campaigns. You may setup A/B tests directly in the SendGrid UI. First, navigate to your Campaigns page, then click on the desired Campaign name. Next, click on the Testing tab and toggle the switch to on.

Now, you can use the Marketing Campaigns API or the SendGrid UI to make further changes to your campaign.