For API testing