sinon spy instead of assert.ok