added reallocation test