use jasmine spy