add api call test.