spyOn snippet added