This is a test for a bug in SharedBuffer.