Index: trunk/ippToPsps/src/Batch.c
===================================================================
--- trunk/ippToPsps/src/Batch.c	(revision 30191)
+++ trunk/ippToPsps/src/Batch.c	(revision 30968)
@@ -211,4 +211,7 @@
                 haveSurveyType = true;
             }
+            else if(strcmp(sw, "-test") == 0 ) {
+                this->testMode = true;
+            }
         }
 
@@ -352,5 +355,7 @@
     this->pmconfig = NULL;
     this->exitCode = PS_EXIT_SUCCESS;
-
+    this->testMode = false;
+
+    // set up function pointers
     this->parseArguments = parseArguments;
     this->init = init;
