Fix npm test
and tidy up dependencies
#279
Merged
npm test
and tidy up dependencies
#279