test nonallocating resize