testing resizing, unit tested