unit test the resize event