Added karma-jasmine and updated tests