remove window reference in specs