basic scenarios for api.js are done.