call REST API and update test