Index: /branches/eam_branches/ohana.20170822/src/dvopsps/include/dvopsps.h
===================================================================
--- /branches/eam_branches/ohana.20170822/src/dvopsps/include/dvopsps.h	(revision 40229)
+++ /branches/eam_branches/ohana.20170822/src/dvopsps/include/dvopsps.h	(revision 40230)
@@ -45,4 +45,5 @@
 
 int          SAVE_REMOTE;
+int          TEST_MODE;
 
 int          PARALLEL;
Index: /branches/eam_branches/ohana.20170822/src/dvopsps/src/initialize_dvopsps.c
===================================================================
--- /branches/eam_branches/ohana.20170822/src/dvopsps/src/initialize_dvopsps.c	(revision 40229)
+++ /branches/eam_branches/ohana.20170822/src/dvopsps/src/initialize_dvopsps.c	(revision 40230)
@@ -123,4 +123,10 @@
   if ((N = get_argument (argc, argv, "-insert-remote"))) {
     SAVE_REMOTE = FALSE;
+    remove_argument (N, &argc, argv);
+  }
+
+  TEST_MODE = FALSE;
+  if ((N = get_argument (argc, argv, "-test-mode"))) {
+    TEST_MODE = TRUE;
     remove_argument (N, &argc, argv);
   }
@@ -361,4 +367,10 @@
   }
 
+  TEST_MODE = FALSE;
+  if ((N = get_argument (argc, argv, "-test-mode"))) {
+    TEST_MODE = TRUE;
+    remove_argument (N, &argc, argv);
+  }
+
   HOST_ID = 0;
   if ((N = get_argument (argc, argv, "-hostID"))) {
Index: /branches/eam_branches/ohana.20170822/src/dvopsps/src/insert_FWobjects_dvopsps.c
===================================================================
--- /branches/eam_branches/ohana.20170822/src/dvopsps/src/insert_FWobjects_dvopsps.c	(revision 40229)
+++ /branches/eam_branches/ohana.20170822/src/dvopsps/src/insert_FWobjects_dvopsps.c	(revision 40230)
@@ -136,6 +136,7 @@
     snprintf (tmpline, 1024, "%s -dbname %s", command, DATABASE_NAME); strcpy (command, tmpline);
 
-    if (VERBOSE)    { snprintf (tmpline, 1024, "%s -v",      command);             strcpy (command, tmpline); }
-    if (SINGLE_CPT) { snprintf (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }
+    if (VERBOSE)    { snprintf (tmpline, 1024, "%s -v",         command);             strcpy (command, tmpline); }
+    if (TEST_MODE)  { snprintf (tmpline, 1024, "%s -test-mode", command);             strcpy (command, tmpline); }
+    if (SINGLE_CPT) { snprintf (tmpline, 1024, "%s -cpt %s",    command, SINGLE_CPT); strcpy (command, tmpline); }
 
     fprintf (stderr, "command: %s\n", command);
Index: /branches/eam_branches/ohana.20170822/src/dvopsps/src/insert_FWobjects_dvopsps_catalog.c
===================================================================
--- /branches/eam_branches/ohana.20170822/src/dvopsps/src/insert_FWobjects_dvopsps_catalog.c	(revision 40229)
+++ /branches/eam_branches/ohana.20170822/src/dvopsps/src/insert_FWobjects_dvopsps_catalog.c	(revision 40230)
@@ -43,9 +43,11 @@
     }
 
-    int hasPS1 = FALSE;
-    for (int j = 0; !hasPS1 && (j < Nsecfilt); j++) {
-      if (secfilt[i*Nsecfilt + j].flags & hasPS1_flag) hasPS1 = TRUE;
-    }
-    if (!hasPS1) continue; // skip non-PS1 data
+    if (!TEST_MODE) {
+      int hasPS1 = FALSE;
+      for (int j = 0; !hasPS1 && (j < Nsecfilt); j++) {
+        if (secfilt[i*Nsecfilt + j].flags & hasPS1_flag) hasPS1 = TRUE;
+      }
+      if (!hasPS1) continue; // skip non-PS1 data
+    }
 
     off_t m = average[i].lensobjOffset;
