Improved automated testing using karma and jasmine