Index: trunk/psphot/src/psphotModelTest.c
===================================================================
--- trunk/psphot/src/psphotModelTest.c	(revision 5837)
+++ trunk/psphot/src/psphotModelTest.c	(revision 5986)
@@ -11,4 +11,7 @@
 
     psMetadataItem *item  = NULL;
+
+    // run model fitting tests on a single source
+    if (!psMetadataLookupBool (&status, config, "TEST_FIT")) return false;
 
     // what fitting mode to use?
@@ -166,4 +169,5 @@
     psphotSaveImage (NULL, source->pixels, "resid.fits");
     psphotSaveImage (NULL, source->mask, "mask.fits");
-    return true;
+
+    exit (0);
 }
