API Test Script