test api base class