mocking $window is working. got one more test passing