fixed resize event, setup test case