Index: /trunk/psModules/test/verified/tst_pmObjects01.stderr
===================================================================
--- /trunk/psModules/test/verified/tst_pmObjects01.stderr	(revision 3594)
+++ /trunk/psModules/test/verified/tst_pmObjects01.stderr	(revision 3594)
@@ -0,0 +1,237 @@
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_pmObjects01.c                                          *
+*            TestPoint: Test Point Driver{pmObjects: structure allocators and deallocators} *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+
+---> TESTPOINT PASSED (Test Point Driver{pmObjects: structure allocators and deallocators} | tst_pmObjects01.c)
+
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_pmObjects01.c                                          *
+*            TestPoint: Test Point Driver{pmObjects: psFindVectorPeaks()}          *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+<DATE><TIME>|<HOST>|E|pmFindVectorPeeks (pmObjects.c:<LINENO>)
+    Unallowable operation: psVector vector or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmFindVectorPeeks (pmObjects.c:<LINENO>)
+    Unallowable operation: psVector vector has no elements.
+<DATE><TIME>|<HOST>|E|pmFindVectorPeeks (pmObjects.c:<LINENO>)
+    Unallowable operation: psVector vector has incorrect type.
+
+---> TESTPOINT PASSED (Test Point Driver{pmObjects: psFindVectorPeaks()} | tst_pmObjects01.c)
+
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_pmObjects01.c                                          *
+*            TestPoint: Test Point Driver{pmObjects: psFindImagePeaks()}           *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+<DATE><TIME>|<HOST>|E|psImageAlloc (psImage.c:<LINENO>)
+    Specified number of rows (0) or columns (0) is invalid.
+<DATE><TIME>|<HOST>|E|pmFindImagePeeks (pmObjects.c:<LINENO>)
+    Unallowable operation: psImage image or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmFindImagePeeks (pmObjects.c:<LINENO>)
+    Unallowable operation: psImage image or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmFindImagePeeks (pmObjects.c:<LINENO>)
+    Unallowable operation: psImage image has incorrect type.
+
+---> TESTPOINT PASSED (Test Point Driver{pmObjects: psFindImagePeaks()} | tst_pmObjects01.c)
+
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_pmObjects01.c                                          *
+*            TestPoint: Test Point Driver{pmObjects: pmCullPeaks()}                *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+<DATE><TIME>|<HOST>|E|pmCullPeeks (pmObjects.c:<LINENO>)
+    Unallowable operation: peaks is NULL.
+
+---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmCullPeaks()} | tst_pmObjects01.c)
+
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_pmObjects01.c                                          *
+*            TestPoint: Test Point Driver{pmObjects: pmSourceLocalSky()}           *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+<DATE><TIME>|<HOST>|E|pmSourceLocalSky (pmObjects.c:<LINENO>)
+    Unallowable operation: psImage image or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmSourceLocalSky (pmObjects.c:<LINENO>)
+    Unallowable operation: psImage image has incorrect type.
+<DATE><TIME>|<HOST>|E|pmSourceLocalSky (pmObjects.c:<LINENO>)
+    Unallowable operation: peak is NULL.
+<DATE><TIME>|<HOST>|E|pmSourceLocalSky (pmObjects.c:<LINENO>)
+    Error: (0.0 > innerRadius) (0.000000 -10.000000)
+<DATE><TIME>|<HOST>|E|pmSourceLocalSky (pmObjects.c:<LINENO>)
+    Error: (innerRadius > outerRadius) (10.000000 5.000000)
+<DATE><TIME>|<HOST>|E|pmSourceLocalSky (pmObjects.c:<LINENO>)
+    Sub image startRow is outside image boundaries (-19).
+<DATE><TIME>|<HOST>|E|pmSourceLocalSky (pmObjects.c:<LINENO>)
+    Sub image endRow is outside image boundaries (120).
+<DATE><TIME>|<HOST>|E|pmSourceLocalSky (pmObjects.c:<LINENO>)
+    Sub image startCol is outside image boundaries (-19).
+<DATE><TIME>|<HOST>|E|pmSourceLocalSky (pmObjects.c:<LINENO>)
+    Sub image endCol is outside image boundaries (105).
+
+---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmSourceLocalSky()} | tst_pmObjects01.c)
+
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_pmObjects01.c                                          *
+*            TestPoint: Test Point Driver{pmObjects: pmSourceSetPixelCircle()}     *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+<DATE><TIME>|<HOST>|E|pmSourceSetPixelCircle (pmObjects.c:<LINENO>)
+    Unallowable operation: source is NULL.
+<DATE><TIME>|<HOST>|E|pmSourceSetPixelCircle (pmObjects.c:<LINENO>)
+    Unallowable operation: psImage image or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmSourceSetPixelCircle (pmObjects.c:<LINENO>)
+    Unallowable operation: psImage image has incorrect type.
+<DATE><TIME>|<HOST>|E|pmSourceSetPixelCircle (pmObjects.c:<LINENO>)
+    Error: (0.0 > radius) (0.000000 -10.000000)
+<DATE><TIME>|<HOST>|E|pmSourceSetPixelCircle (pmObjects.c:<LINENO>)
+    Sub image startCol is outside image boundaries (-9).
+<DATE><TIME>|<HOST>|E|pmSourceSetPixelCircle (pmObjects.c:<LINENO>)
+    Sub image endCol is outside image boundaries (110).
+<DATE><TIME>|<HOST>|E|pmSourceSetPixelCircle (pmObjects.c:<LINENO>)
+    Sub image startRow is outside image boundaries (-9).
+<DATE><TIME>|<HOST>|E|pmSourceSetPixelCircle (pmObjects.c:<LINENO>)
+    Sub image endRow is outside image boundaries (110).
+<DATE><TIME>|<HOST>|W|pmSourceSetPixelCircle
+    WARNING: pmSourceSetPixelCircle(): image->pixels not NULL.  Freeing and reallocating.
+
+---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmSourceSetPixelCircle()} | tst_pmObjects01.c)
+
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_pmObjects01.c                                          *
+*            TestPoint: Test Point Driver{pmObjects: pmSourceMoments()}            *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+<DATE><TIME>|<HOST>|E|pmSourceMoments (pmObjects.c:<LINENO>)
+    Unallowable operation: source is NULL.
+<DATE><TIME>|<HOST>|E|pmSourceMoments (pmObjects.c:<LINENO>)
+    Error: (0.0 > radius) (0.000000 -10.000000)
+
+---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmSourceMoments()} | tst_pmObjects01.c)
+
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_pmObjects01.c                                          *
+*            TestPoint: Test Point Driver{pmObjects: pmMin()}                      *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+<DATE><TIME>|<HOST>|E|pmMinLM_Gauss2D (pmObjects.c:<LINENO>)
+    Unallowable operation: psVector params or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmMinLM_Gauss2D (pmObjects.c:<LINENO>)
+    Unallowable operation: psVector x or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmMinLM_PsuedoGauss2D (pmObjects.c:<LINENO>)
+    Unallowable operation: psVector params or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmMinLM_PsuedoGauss2D (pmObjects.c:<LINENO>)
+    Unallowable operation: psVector x or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmMinLM_Wauss2D (pmObjects.c:<LINENO>)
+    Unallowable operation: psVector params or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmMinLM_Wauss2D (pmObjects.c:<LINENO>)
+    Unallowable operation: psVector x or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmMinLM_TwistGauss2D (pmObjects.c:<LINENO>)
+    Unallowable operation: psVector params or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmMinLM_TwistGauss2D (pmObjects.c:<LINENO>)
+    Unallowable operation: psVector x or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmMinLM_Sersic (pmObjects.c:<LINENO>)
+    This function is not implemented yet.
+<DATE><TIME>|<HOST>|E|pmMinLM_Sersic (pmObjects.c:<LINENO>)
+    Unallowable operation: psVector params or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmMinLM_Sersic (pmObjects.c:<LINENO>)
+    Unallowable operation: psVector x or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmMinLM_SersicCore (pmObjects.c:<LINENO>)
+    This function is not implemented yet.
+<DATE><TIME>|<HOST>|E|pmMinLM_SersicCore (pmObjects.c:<LINENO>)
+    Unallowable operation: psVector params or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmMinLM_SersicCore (pmObjects.c:<LINENO>)
+    Unallowable operation: psVector x or its data is NULL.
+
+---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmMin()} | tst_pmObjects01.c)
+
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_pmObjects01.c                                          *
+*            TestPoint: Test Point Driver{pmObjects: pmSourceModelGuess()}         *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+<DATE><TIME>|<HOST>|E|pmSourceModelGuess (pmObjects.c:<LINENO>)
+    Unallowable operation: source is NULL.
+<DATE><TIME>|<HOST>|E|pmSourceModelGuess (pmObjects.c:<LINENO>)
+    Unallowable operation: psImage image or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmModelAlloc (pmObjects.c:<LINENO>)
+    Undefined psModelType
+<DATE><TIME>|<HOST>|E|pmSourceModelGuess (pmObjects.c:<LINENO>)
+    Undefined psModelType
+<DATE><TIME>|<HOST>|W|pmSourceModelGuess
+    WARNING: source->models was non-NULL; calling psFree(source->models).
+<DATE><TIME>|<HOST>|W|pmSourceModelGuess
+    WARNING: source->models was non-NULL; calling psFree(source->models).
+<DATE><TIME>|<HOST>|W|pmSourceModelGuess
+    WARNING: source->models was non-NULL; calling psFree(source->models).
+<DATE><TIME>|<HOST>|W|pmSourceModelGuess
+    WARNING: source->models was non-NULL; calling psFree(source->models).
+<DATE><TIME>|<HOST>|W|pmSourceModelGuess
+    WARNING: source->models was non-NULL; calling psFree(source->models).
+
+---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmSourceModelGuess()} | tst_pmObjects01.c)
+
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_pmObjects01.c                                          *
+*            TestPoint: Test Point Driver{pmObjects: pmSourceContour()}            *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+<DATE><TIME>|<HOST>|E|pmSourceContour (pmObjects.c:<LINENO>)
+    Unallowable operation: source is NULL.
+<DATE><TIME>|<HOST>|E|pmSourceContour (pmObjects.c:<LINENO>)
+    Unallowable operation: image is NULL.
+<DATE><TIME>|<HOST>|E|pmSourceContour (pmObjects.c:<LINENO>)
+    Could not find contour edge (NAN)
+
+---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmSourceContour()} | tst_pmObjects01.c)
+
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_pmObjects01.c                                          *
+*            TestPoint: Test Point Driver{pmObjects: pmSourceAddModel()}           *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+<DATE><TIME>|<HOST>|E|p_pmSourceAddOrSubModel (pmObjects.c:<LINENO>)
+    Unallowable operation: psImage image or its data is NULL.
+<DATE><TIME>|<HOST>|E|p_pmSourceAddOrSubModel (pmObjects.c:<LINENO>)
+    Unallowable operation: src is NULL.
+
+---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmSourceAddModel()} | tst_pmObjects01.c)
+
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_pmObjects01.c                                          *
+*            TestPoint: Test Point Driver{pmObjects: pmSourceSubModel()}           *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+<DATE><TIME>|<HOST>|E|p_pmSourceAddOrSubModel (pmObjects.c:<LINENO>)
+    Unallowable operation: psImage image or its data is NULL.
+<DATE><TIME>|<HOST>|E|p_pmSourceAddOrSubModel (pmObjects.c:<LINENO>)
+    Unallowable operation: src is NULL.
+
+---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmSourceSubModel()} | tst_pmObjects01.c)
+
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_pmObjects01.c                                          *
+*            TestPoint: Test Point Driver{pmObjects: pmSourceSubModel()}           *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+<DATE><TIME>|<HOST>|E|pmSourceFitModel (pmObjects.c:<LINENO>)
+    Unallowable operation: psImage image or its data is NULL.
+<DATE><TIME>|<HOST>|E|pmSourceFitModel (pmObjects.c:<LINENO>)
+    Unallowable operation: source is NULL.
+
+---> TESTPOINT PASSED (Test Point Driver{pmObjects: pmSourceSubModel()} | tst_pmObjects01.c)
+
Index: /trunk/psModules/test/verified/tst_pmObjects01.stdout
===================================================================
--- /trunk/psModules/test/verified/tst_pmObjects01.stdout	(revision 3594)
+++ /trunk/psModules/test/verified/tst_pmObjects01.stdout	(revision 3594)
@@ -0,0 +1,189 @@
+----------------------------------------------------------------------------------
+Calling pmFindVectorPeeks with NULL psVector.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmFindVectorPeeks with empty psVector.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmFindVectorPeeks with PS_TYPE_F64 psVector.  Should generate error and return NULL.
+-------------- Calling test_pmFindVectorPeeks on an 1 size vector. --------------
+Test pmFindVectorPeeks() with a first-element peak.
+Test pmFindVectorPeeks() with a first-element peak, large threshold.
+-------------- Calling test_pmFindVectorPeeks on an 10 size vector. --------------
+Test pmFindVectorPeeks() with a first-element peak.
+Test pmFindVectorPeeks() with a first-element peak, large threshold.
+Test pmFindVectorPeeks() with a last-element peak.
+Test pmFindVectorPeeks() with a last-element peak, large threshold.
+Test pmFindVectorPeeks() with all even-numbered elements peak.
+Test pmFindVectorPeeks() with all even-numbered elements peak, large threshold.
+----------------------------------------------------------------------------------
+Calling pmFindImagePeeks with NULL psImage.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmFindImagePeeks with empty psImage.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmFindImagePeeks with PS_TYPE_F64 psImage.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+-------------- Calling test_pmFindVectorPeeks on an 10-by-10 image. --------------
+(200.0) (41.0) (34.0) (29.0) (26.0) (25.0) (26.0) (29.0) (34.0) (200.0) 
+(41.0) (32.0) (25.0) (20.0) (17.0) (16.0) (17.0) (20.0) (25.0) (32.0) 
+(34.0) (25.0) (18.0) (13.0) (10.0) (9.0) (10.0) (13.0) (18.0) (25.0) 
+(29.0) (20.0) (13.0) (8.0) (5.0) (4.0) (5.0) (8.0) (13.0) (20.0) 
+(26.0) (17.0) (10.0) (5.0) (2.0) (1.0) (2.0) (5.0) (10.0) (17.0) 
+(25.0) (16.0) (9.0) (4.0) (1.0) (0.0) (1.0) (4.0) (9.0) (16.0) 
+(26.0) (17.0) (10.0) (5.0) (2.0) (1.0) (2.0) (5.0) (10.0) (17.0) 
+(29.0) (20.0) (13.0) (8.0) (5.0) (4.0) (5.0) (8.0) (13.0) (20.0) 
+(34.0) (25.0) (18.0) (13.0) (10.0) (9.0) (10.0) (13.0) (18.0) (25.0) 
+(200.0) (32.0) (25.0) (20.0) (17.0) (16.0) (17.0) (20.0) (25.0) (200.0) 
+----------------------------------------------------------------------------------
+Calling pmCullPeeks with NULL psList.  Should generate error and return NULL.
+(10.0) (0.0) (10.0) (0.0) (10.0) (0.0) (10.0) (0.0) (10.0) (0.0) 
+(0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) 
+(12.0) (0.0) (12.0) (0.0) (12.0) (0.0) (12.0) (0.0) (12.0) (0.0) 
+(0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) 
+(14.0) (0.0) (14.0) (0.0) (14.0) (0.0) (14.0) (0.0) (14.0) (0.0) 
+(0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) 
+(16.0) (0.0) (16.0) (0.0) (16.0) (0.0) (16.0) (0.0) (16.0) (0.0) 
+(0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) 
+(18.0) (0.0) (18.0) (0.0) (18.0) (0.0) (18.0) (0.0) (18.0) (0.0) 
+(0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) (0.0) 
+Set 25 peaks
+----------------------------------------------------------------------------------
+Calling pmCullPeeks with large maxValue and NULL psRegion.
+----------------------------------------------------------------------------------
+Calling pmCullPeeks with tiny maxValue and NULL psRegion.
+pmFindImagePeeks found 25 peaks
+----------------------------------------------------------------------------------
+Calling pmCullPeeks with large maxValue and disjoint psRegion.
+pmFindImagePeeks found 25 peaks
+----------------------------------------------------------------------------------
+Calling pmCullPeeks with large maxValue and non-disjoint psRegion.
+pmFindImagePeeks found 25 peaks
+----------------------------------------------------------------------------------
+----------------------------------------------------------------------------------
+Calling pmSourceLocalSky with NULL psImage.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceLocalSky with wrong-type psImage.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceLocalSky with NULL psPeak.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceLocalSky with innerRadius<0.0.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceLocalSky with innerRadius>outerRadius.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceLocalSky with subImage startRow < 0.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceLocalSky with subImage endRow > numRows.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceLocalSky with subImage startCol < 0.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceLocalSky with subImage endCol > numCols.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceLocalSky with valid data.
+----------------------------------------------------------------------------------
+----------------------------------------------------------------------------------
+Calling pmSourceSetPixelCircle with NULL psSource.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceSetPixelCircle with NULL psImage.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceSetPixelCircle with wrong type psImage.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceSetPixelCircle with radius < 0.0.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceSetPixelCircle with subImage startCol < 0.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceSetPixelCircle with subImage endCol > numCols.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceSetPixelCircle with subImage startRow < 0.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceSetPixelCircle with subImage endRow > numRows.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceSetPixelCircle with valid data.
+----------------------------------------------------------------------------------
+----------------------------------------------------------------------------------
+Calling pmSourceMoments with NULL psSource.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceMoments with radius < 0.0.  Should generate error and return NULL.
+----------------------------------------------------------------------------------
+----------------------------------------------------------------------------------
+Calling pmMinLM_Gauss2D with NULL deriv vector.  Should not generate error.
+----------------------------------------------------------------------------------
+Calling pmMinLM_Gauss2D with NULL params vector.  Should generate error and return NAN.
+----------------------------------------------------------------------------------
+Calling pmMinLM_Gauss2D with NULL x vector.  Should generate error and return NAN.
+----------------------------------------------------------------------------------
+Calling pmMinLM_PsuedoGauss2D with NULL deriv vector.  Should not generate error.
+----------------------------------------------------------------------------------
+Calling pmMinLM_PsuedoGauss2D with NULL params vector.  Should generate error and return NAN.
+----------------------------------------------------------------------------------
+Calling pmMinLM_PsuedoGauss2D with NULL x vector.  Should generate error and return NAN.
+----------------------------------------------------------------------------------
+Calling pmMinLM_Wauss2D with NULL deriv vector.  Should not generate error.
+----------------------------------------------------------------------------------
+Calling pmMinLM_Wauss2D with NULL params vector.  Should generate error and return NAN.
+----------------------------------------------------------------------------------
+Calling pmMinLM_Wauss2D with NULL x vector.  Should generate error and return NAN.
+----------------------------------------------------------------------------------
+Calling pmMinLM_TwistGauss2D with NULL deriv vector.  Should not generate error.
+----------------------------------------------------------------------------------
+Calling pmMinLM_TwistGauss2D with NULL params vector.  Should generate error and return NAN.
+----------------------------------------------------------------------------------
+Calling pmMinLM_TwistGauss2D with NULL x vector.  Should generate error and return NAN.
+----------------------------------------------------------------------------------
+Calling pmMinLM_Sersic with NULL deriv vector.  Should not generate error.
+----------------------------------------------------------------------------------
+Calling pmMinLM_Sersic with NULL params vector.  Should generate error and return NAN.
+----------------------------------------------------------------------------------
+Calling pmMinLM_Sersic with NULL x vector.  Should generate error and return NAN.
+----------------------------------------------------------------------------------
+Calling pmMinLM_SersicCore with NULL deriv vector.  Should not generate error.
+----------------------------------------------------------------------------------
+Calling pmMinLM_SersicCore with NULL params vector.  Should generate error and return NAN.
+----------------------------------------------------------------------------------
+Calling pmMinLM_SersicCore with NULL x vector.  Should generate error and return NAN.
+Calling pmSourceLocalSky with valid data.
+----------------------------------------------------------------------------------
+Calling pmSourceModelGuess with NULL psSource.  Should generate error, return FALSE.
+----------------------------------------------------------------------------------
+Calling pmSourceModelGuess with NULL psImage.  Should generate error, return FALSE.
+----------------------------------------------------------------------------------
+Calling pmSourceModelGuess with bad model type.  Should generate error, return FALSE.
+----------------------------------------------------------------------------------
+Calling pmSourceModelGuess with PS_MODEL_GAUSS
+----------------------------------------------------------------------------------
+Calling pmSourceModelGuess with PS_MODEL_PGAUSS
+----------------------------------------------------------------------------------
+Calling pmSourceModelGuess with PS_MODEL_TWIST_GAUSS
+----------------------------------------------------------------------------------
+Calling pmSourceModelGuess with PS_MODEL_WAUSS
+----------------------------------------------------------------------------------
+Calling pmSourceModelGuess with PS_MODEL_SERSIC
+----------------------------------------------------------------------------------
+Calling pmSourceModelGuess with PS_MODEL_SERSIC_CORE
+Calling pmSourceLocalSky with valid data.
+----------------------------------------------------------------------------------
+Calling pmSourceContour with NULL psSource .  Should generate error, return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceContour with NULL psImage .  Should generate error, return NULL.
+----------------------------------------------------------------------------------
+Calling pmSourceContour with acceptable data.
+NOTE: must figure out the parameters for this test to be meaningful.
+Calling pmSourceLocalSky with valid data.
+----------------------------------------------------------------------------------
+Calling pmSourceAddModel with NULL psImage.  Should generate error, return FALSE.
+----------------------------------------------------------------------------------
+Calling pmSourceAddModel with NULL psSrc.  Should generate error, return FALSE.
+----------------------------------------------------------------------------------
+Calling pmSourceAddModel with acceptable data.
+Calling pmSourceLocalSky with valid data.
+----------------------------------------------------------------------------------
+Calling pmSourceSubModel with NULL psImage.  Should generate error, return FALSE.
+----------------------------------------------------------------------------------
+Calling pmSourceSubModel with NULL psSrc.  Should generate error, return FALSE.
+----------------------------------------------------------------------------------
+Calling pmSourceSubModel with acceptable data.
+Calling pmSourceLocalSky with valid data.
+----------------------------------------------------------------------------------
+Calling pmSourceFitModel with NULL psImage.  Should generate error, return FALSE.
+----------------------------------------------------------------------------------
+Calling pmSourceFitModel with NULL psSource.  Should generate error, return FALSE.
+----------------------------------------------------------------------------------
+Calling pmSourceFitModel with acceptable data.
+pmSourceFitModel returned 0
