modify testApi.js with adding query params