Drop old APITestCase related code

Drop old APITestCase helper functions.
Merge pull request #1695 from elyezer/drop-old-code

Drop old APITestCase related code