Modified sandboxed tests to use this.spy instead of sinon.spy