Fixed compiler errors in cuda_test