[BUG #8721] use sinon sandbox feature
[BUG #8721] use sinon sandbox feature