Token and new api test case

Token: testcase/testapi_token.js

new api test case was at testcase/wholeProc/