test vector::resize