fixed spyOn in UI Test