Upgrade Sinon to 1.9.1 and update tests to match the API change