use sinon.spy everywhere