     test1d.copyToDevice();
 
     assert( 50 == sum(test1d.devicePtr(), test1d.N()) );
+    assert( 50 == sum(test1d.devicePtr(), test1d.N()) );
 
     /*
      * 2D test


    // sum over each row
    for (int j = 0; j < test2d.M(); j++)
        assert( 50 == sum(test2d.devicePtrAt(0, j), test2d.N()) );

    /*
     * 3D test

    test3d.copyToDevice();

    for (int j = 0; j < test3d.M(); j++)
    {
        for (int k = 0; k < test3d.O(); k++)
        {
            assert( 50 == sum(test3d.devicePtrAt(0, j, k), test3d.N()) );
            assert( 50 == sum(test3d.devicePtrAt(0, j, k), test3d.N()) );
        }
    }
}
