I believe that if you use `spyOn` instead of `jasmine.createSpy`, then Jasmine will handle saving a reference to the original object and replacing the spy with the original object at the end of the test. Therefore, it would be simpler to do `spyOn(console, "error")`, `spyOn(window, "None")`, and `spyOn(window, "Video")` instead of what you've done here.