Fixing tests that were failing due to window.$