Index: trunk/ippdb/tests/alloc.c
===================================================================
--- trunk/ippdb/tests/alloc.c	(revision 8228)
+++ trunk/ippdb/tests/alloc.c	(revision 8266)
@@ -1300,5 +1300,5 @@
         detResidExpAnalysisRow *object;
 
-        object = detResidExpAnalysisRowAlloc(-32, -32, "a string", "a string", true    );
+        object = detResidExpAnalysisRowAlloc(-32, -32, "a string", "a string", true, true    );
 
         if (!object) {
@@ -1319,4 +1319,8 @@
         }
         if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
+            psFree(object);
+            exit(EXIT_FAILURE);
+        }
+        if (!object->keep == true) {
             psFree(object);
             exit(EXIT_FAILURE);
Index: trunk/ippdb/tests/insert.c
===================================================================
--- trunk/ippdb/tests/insert.c	(revision 8228)
+++ trunk/ippdb/tests/insert.c	(revision 8266)
@@ -463,5 +463,5 @@
         }
 
-        if (!detResidExpAnalysisInsert(dbh, -32, -32, "a string", "a string", true)) {
+        if (!detResidExpAnalysisInsert(dbh, -32, -32, "a string", "a string", true, true)) {
             exit(EXIT_FAILURE);
         }
Index: trunk/ippdb/tests/insertobject.c
===================================================================
--- trunk/ippdb/tests/insertobject.c	(revision 8228)
+++ trunk/ippdb/tests/insertobject.c	(revision 8266)
@@ -674,5 +674,5 @@
         }
 
-        object = detResidExpAnalysisRowAlloc(-32, -32, "a string", "a string", true);
+        object = detResidExpAnalysisRowAlloc(-32, -32, "a string", "a string", true, true);
         if (!object) {
             exit(EXIT_FAILURE);
Index: trunk/ippdb/tests/metadatafromobject.c
===================================================================
--- trunk/ippdb/tests/metadatafromobject.c	(revision 8228)
+++ trunk/ippdb/tests/metadatafromobject.c	(revision 8266)
@@ -1543,5 +1543,5 @@
         bool            status;
 
-        object = detResidExpAnalysisRowAlloc(-32, -32, "a string", "a string", true);
+        object = detResidExpAnalysisRowAlloc(-32, -32, "a string", "a string", true, true);
         if (!object) {
             exit(EXIT_FAILURE);
@@ -1568,4 +1568,8 @@
         }
         if (strncmp(psMetadataLookupPtr(&status, md, "recipe"), "a string", MAX_STRING_LENGTH)) {
+            psFree(md);
+            exit(EXIT_FAILURE);
+        }
+        if (!psMetadataLookupBool(&status, md, "keep") == true) {
             psFree(md);
             exit(EXIT_FAILURE);
Index: trunk/ippdb/tests/objectfrommetadata.c
===================================================================
--- trunk/ippdb/tests/objectfrommetadata.c	(revision 8228)
+++ trunk/ippdb/tests/objectfrommetadata.c	(revision 8266)
@@ -2369,4 +2369,8 @@
             exit(EXIT_FAILURE);
         }
+        if (!psMetadataAdd(md, PS_LIST_TAIL, "keep", PS_DATA_BOOL, NULL, true)) {
+            psFree(md);
+            exit(EXIT_FAILURE);
+        }
         if (!psMetadataAdd(md, PS_LIST_TAIL, "accept", PS_DATA_BOOL, NULL, true)) {
             psFree(md);
@@ -2395,4 +2399,8 @@
         }
         if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
+            psFree(object);
+            exit(EXIT_FAILURE);
+        }
+        if (!object->keep == true) {
             psFree(object);
             exit(EXIT_FAILURE);
Index: trunk/ippdb/tests/pop.c
===================================================================
--- trunk/ippdb/tests/pop.c	(revision 8228)
+++ trunk/ippdb/tests/pop.c	(revision 8266)
@@ -686,4 +686,5 @@
         char            exp_id[256];
         char            recipe[256];
+        bool            keep;
         bool            accept;
 
@@ -693,5 +694,5 @@
         }
 
-        if (!detResidExpAnalysisPop(dbh, &det_id, &iteration, (char **)&exp_id, (char **)&recipe, &accept)) { 
+        if (!detResidExpAnalysisPop(dbh, &det_id, &iteration, (char **)&exp_id, (char **)&recipe, &keep, &accept)) { 
             exit(EXIT_FAILURE);
         }
