Fix APIRequestTestCase

This needs to become a base class to catch up with the changes made to `RequestTestCase`.
I'll release this and #18 together as `3.1.0`.