Fix APIRequestTestCase

This needs to become a base class to catch up with the changes made to `RequestTestCase`.