   
   ASSERT_EQUAL(h_result, d_result);
 }
+
+
+template<typename T>
+void TestRemoveCopyDeviceSeq(const size_t n)
+{
+  TestRemoveCopyDevice<T>(thrust::seq, n);
+}
 DECLARE_VARIABLE_UNITTEST(TestRemoveCopyDeviceSeq);
 
 
 template<typename T>
-void TestRemoveCopyIfDeviceSeq(const size_t n)
+void TestRemoveCopyDeviceDevice(const size_t n)
+{
+  TestRemoveCopyDevice<T>(thrust::device, n);
+}
+DECLARE_VARIABLE_UNITTEST(TestRemoveCopyDeviceDevice);
+
+
+template<typename T, typename ExecutionPolicy>
+void TestRemoveCopyIfDevice(ExecutionPolicy exec, const size_t n)
 {
   thrust::host_vector<T>   h_data = unittest::random_samples<T>(n);
   thrust::device_vector<T> d_data = h_data;

};


template<typename T>
void TestRemoveDeviceSeq(const size_t n)
{
  thrust::host_vector<T>   h_data = unittest::random_samples<T>(n);
  thrust::device_vector<T> d_data = h_data;

  
  size_t h_size = thrust::remove_copy_if(h_data.begin(), h_data.end(), h_stencil.begin(), h_result.begin(), is_true<T>()) - h_result.begin();

  remove_copy_if_kernel<<<1,1>>>(exec, d_data.begin(), d_data.end(), d_stencil.begin(), d_result.begin(), is_true<T>(), d_new_end.begin());
  size_t d_size = (iterator)d_new_end[0] - d_result.begin();
  
  ASSERT_EQUAL(h_size, d_size);
