modify app-test.js accroding to the new api name