test for resize