IVGCVSW-4737 Add check for CpuRef back-end before using it in tests