Index: trunk/psLib/test/dataManip/tst_psStats00.c
===================================================================
--- trunk/psLib/test/dataManip/tst_psStats00.c	(revision 660)
+++ trunk/psLib/test/dataManip/tst_psStats00.c	(revision 678)
@@ -14,6 +14,4 @@
     int testStatus      = true;
     int i               = 0;
-    psType dummyFloatType;
-    psType dummyIntType;
     psVector *myVector  = NULL;
     psVector *maskVector= NULL;
@@ -25,14 +23,10 @@
     printPositiveTestHeader(stdout,
                             "psStats functions",
-                            "hmmm");
+                            "PS_STAT_SAMPLE_MEAN");
 
     myStats = psStatsAlloc(PS_STAT_SAMPLE_MEAN);
-    dummyFloatType.type = PS_TYPE_FLOAT;
-    dummyFloatType.dimen = PS_DIMEN_VECTOR;
-    dummyIntType.type = PS_TYPE_INT;
-    dummyIntType.dimen = PS_DIMEN_VECTOR;
-    myVector = psVectorAlloc(dummyFloatType, N);
+    myVector = psVectorAlloc(PS_TYPE_FLOAT, N);
     myVector->n = N;
-    maskVector = psVectorAlloc(dummyIntType, N);
+    maskVector = psVectorAlloc(PS_TYPE_UINT8, N);
     maskVector->n = N;
 
@@ -42,10 +36,10 @@
         myVector->vec.f[i] = (float) i;
         if (i < (N/2)) {
-            maskVector->vec.i[i] = 0;
+            maskVector->vec.ui8[i] = 0;
             realMean2+= myVector->vec.f[i];
             count++;
         } else {
             printf("Masking element %d\n", i);
-            maskVector->vec.i[i] = 1;
+            maskVector->vec.ui8[i] = 1;
         }
         realMean1+= myVector->vec.f[i];
@@ -69,4 +63,9 @@
     printf("Called psArrayStats() on a vector with last N/2 elements masked.\n");
     printf("The expected mean was %f; the calculated mean was %f\n", realMean2, mean);
+    if (mean == realMean2) {
+        testStatus = true;
+    } else {
+        testStatus = false;
+    }
 
     printFooter(stdout,
