Test: use sinon.sandbox for easier test restore

Worked like a charm @nschonni.