use karma and jasmine to test