(#156) Create AbstractAPITestCase class.

This cleans up all the boilerplate in the common base classes for
tests. Now, all the test classes have the same get_response API.