for this test, mne.cuda.init_cuda() needs to be called. Does it work if MNE_USE_CUDA is not set in the config file?