Fix APIRequestTestCase

This needs to become a base class to catch up with the changes made to `RequestTestCase`.
Normally best to use "upcoming" in PRs until you're ready to make a release, and update it when you change the setup.