Index: trunk/psLib/test/dataManip/tst_psStats00.c
===================================================================
--- trunk/psLib/test/dataManip/tst_psStats00.c	(revision 2392)
+++ trunk/psLib/test/dataManip/tst_psStats00.c	(revision 2723)
@@ -172,7 +172,15 @@
                             "PS_STAT_SAMPLE_MEAN: NULL inputs");
 
-    myStats = psVectorStats(myStats, NULL, NULL, 0);
+    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error message.");
+    if( psVectorStats(myStats, NULL, NULL, 0) != myStats ) {
+        psError(PS_ERR_UNKNOWN,true,"psVectorStats did not return stats when input NULL");
+        return 10;
+    }
+    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error message.");
     psStats *myStats2 = psVectorStats(NULL, myVector, NULL, 0);
-
+    if ( myStats2 != NULL ) {
+        psError(PS_ERR_UNKNOWN,true,"psVectorStats did not return NULL");
+        return 20;
+    }
     printFooter(stdout,
                 "psVector functions",
