update test framewokr
Update Karma config.
Use package.json
License, fix #54