Add test for command_queue::enqueue_write_buffer_rect()

This adds a test for the enqueue_write_buffer_rect() method
in the command_queue class. This method copies a rectangular
region of memory from the host to a device buffer.