update package.json
add init function, and new test