Added karma and jasmine spec