Added missing return types for Spy chaining methods and for the createSpy method