Fix gpu tests failures with CUDA 7.0