moved url construction to ApiTestCase class