spyOn and andCallFake added