config karma and add npm packages