Test for API class