Testing window focus