Use content.document instead of window, for test of mock.