testing allocChain and freeChain on gpu