get window position, includes some tests that split windows + cleanup