[BUG #8721] use sinon sandbox feature