adding API test