Index: trunk/psLib/test/image/tst_psImageStats02.c
===================================================================
--- trunk/psLib/test/image/tst_psImageStats02.c	(revision 1952)
+++ trunk/psLib/test/image/tst_psImageStats02.c	(revision 1954)
@@ -25,4 +25,5 @@
     psImage *tmpImage = NULL;
     psImage *outImage = NULL;
+    psImage *nullImage = NULL;
     psPolynomial2D *my2DPoly = NULL;
     psPolynomial2D *null2DPoly = NULL;
@@ -102,4 +103,18 @@
     }
 
+
+    psLogMsg(__func__,PS_LOG_INFO,"Following should be an error message for NULL coeffs argument.");
+    nullImage = psImageEvalPolynomial( outImage, NULL );
+    if ( nullImage != NULL ) {
+        printf("ERROR: psImageEvalPolynomial did not return NULL with invalid coeffs argument.");
+    }
+
+    psLogMsg(__func__,PS_LOG_INFO,"Following should be a error message for NULL input argument.");
+    nullImage = psImageEvalPolynomial( NULL, my2DPoly );
+    if ( nullImage != NULL ) {
+        printf("ERROR: psImageEvalPolynomial did not return NULL with null input image.");
+    }
+
+
     psMemCheckCorruption( 1 );
     printFooter( stdout,
