Add some test for the buffer API.
Add a flag argument to the cuda_make_ctx function and use it to specify when we don't want libcompyte to destroy the context.