add resize event for test case