Add tests for block-form of Buffer::new and MemoryPointer::new