Updating api test script