bug fix & api, test update

add test script for `plugin`
update package.json & comment
bug fixed by change names of api for `plugin`