tests around the API class