fix failed jasmine test