Fix sendmail tests.

Forgot to update them to not rely on api_client fixture in previous commit.