Adds upstream test.py

Adds ResourceTestCase and TestApiClient classes