Added better testing for CUDA apply