Ensure sinon spy is always restored