avoid reallocation on test buffers