Basic test for a specific data type.

generate random size memory buffer and write to it's host memory, then
read content from it's device memory. copying should be handled internally.