fixing sinon backend behaviour to allow compatibility with sinon 1.9