added jasmine spy for existing spec