remove the test reference to window