Updated test API method