Test for writing large buffers