 
     thrust::host_vector<int> H2 = D;
 
-    EXPECT_EQ(H, D);
     EXPECT_EQ(H, H2);
 
     H[2] = 1924;
-    EXPECT_NE(H, D);
-
-
     D[2] = 1924;
-    EXPECT_EQ(H, D);
+    H2   = D;
+    EXPECT_EQ(H, H2);
 }
 
 TEST(CudaThrust, Sort)

    thrust::sort(H.begin(), H.end());
    thrust::sort(D.begin(), D.end());

    EXPECT_EQ(H, D);
}

TEST(CudaThrust, Maximum)

    thrust::sort(H.begin(), H.end());
    thrust::sort(D.begin(), D.end());


    thrust::host_vector<int> H2 = D;
    EXPECT_EQ(H, H2);
}


