COMP: Fixing issue when tests are compiled with CUDA but cannot be run