Refactor tests to reference this instead of window.
Adds first pass sinon mocking to experiment_view tests.