Added missing sinon.spy calls.