Wrap sinon (and strict declaration) in function

Sets sinon globally before the function declaration.  Then, wraps
existing sinon code in a function call to isolate the “use strict”
declaration.