fix faulty test
no need to reference window here