Added test case for resizing