Add test script for karma
Add npm test for unit tests