setup for api tests