Refactors common API test functions into a class that all API test classes should inheret