testing tool / package.json

Add of mocha to test, add of the package.json file to handle npm jobs.
Launch testing by "npm test"