Getting current window, tests