Fix tests failures in cuda imgproc module