fix bad reallocate unit test