Add API testing