add karma npm packages for testing
updated main controller test spec