Index: trunk/psphot/src/psphotModelTest.c
===================================================================
--- trunk/psphot/src/psphotModelTest.c	(revision 26894)
+++ trunk/psphot/src/psphotModelTest.c	(revision 28013)
@@ -3,5 +3,5 @@
 
 // XXX add more test information?
-bool psphotModelTest (pmConfig *config, const pmFPAview *view, psMetadata *recipe) {
+bool psphotModelTest (pmConfig *config, const pmFPAview *view, const char *filerule, psMetadata *recipe) {
 
     bool status;
@@ -33,5 +33,5 @@
 
     // use poissonian errors or local-sky errors
-    bool POISSON_ERRORS = psMetadataLookupBool (&status, recipe, "POISSON_ERRORS");
+    bool POISSON_ERRORS = psMetadataLookupBool (&status, recipe, filerule);
     if (!status) POISSON_ERRORS = true;
     pmSourceFitModelInit (15, 0.1, 1.0, POISSON_ERRORS);
