Bug 995425 - Upgrade Sinon to 1.9.1 and update tests to match the API change

https://bugzilla.mozilla.org/show_bug.cgi?id=995425