add test case for adjust_window