fix CUDA unit test on changed API