Adjusted closure methods so that sandbox was used for spying, preventing wrapped methods from being re-wrapped. Fixed minor syntax errors.
Unless we stub/spy/mock using the sandbox we do not restore when calling sandbox.restore()
If mocks are not created through the sandbox, and restored, then they are not torn down properly and pollute later tests