Drop old APITestCase related code

Drop old APITestCase helper functions.