Added assumption for spyOn is called