test for realloc