test changed size of window