fix: use current window in test