Added karma to dependencies and setup npm test