added a test for resize().