Test onWindowFocusChange() function to get correct window size