Index: trunk/ippdb/tests/alloc.c
===================================================================
--- trunk/ippdb/tests/alloc.c	(revision 7461)
+++ trunk/ippdb/tests/alloc.c	(revision 7501)
@@ -880,5 +880,5 @@
         detRunRow       *object;
 
-        object = detRunRowAlloc("a string"    );
+        object = detRunRowAlloc("a string", -32    );
 
         if (!object) {
@@ -887,4 +887,8 @@
 
         if (strncmp(object->det_type, "a string", MAX_STRING_LENGTH)) {
+            psFree(object);
+            exit(EXIT_FAILURE);
+        }
+        if (!object->iteration == -32) {
             psFree(object);
             exit(EXIT_FAILURE);
Index: trunk/ippdb/tests/insert.c
===================================================================
--- trunk/ippdb/tests/insert.c	(revision 7461)
+++ trunk/ippdb/tests/insert.c	(revision 7501)
@@ -343,5 +343,5 @@
         }
 
-        if (!detRunInsert(dbh, "a string")) {
+        if (!detRunInsert(dbh, "a string", -32)) {
             exit(EXIT_FAILURE);
         }
Index: trunk/ippdb/tests/insertobject.c
===================================================================
--- trunk/ippdb/tests/insertobject.c	(revision 7461)
+++ trunk/ippdb/tests/insertobject.c	(revision 7501)
@@ -498,5 +498,5 @@
         }
 
-        object = detRunRowAlloc("a string");
+        object = detRunRowAlloc("a string", -32);
         if (!object) {
             exit(EXIT_FAILURE);
Index: trunk/ippdb/tests/metadatafromobject.c
===================================================================
--- trunk/ippdb/tests/metadatafromobject.c	(revision 7461)
+++ trunk/ippdb/tests/metadatafromobject.c	(revision 7501)
@@ -1059,5 +1059,5 @@
         bool            status;
 
-        object = detRunRowAlloc("a string");
+        object = detRunRowAlloc("a string", -32);
         if (!object) {
             exit(EXIT_FAILURE);
@@ -1072,4 +1072,8 @@
 
         if (strncmp(psMetadataLookupPtr(&status, md, "det_type"), "a string", MAX_STRING_LENGTH)) {
+            psFree(md);
+            exit(EXIT_FAILURE);
+        }
+        if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
             psFree(md);
             exit(EXIT_FAILURE);
Index: trunk/ippdb/tests/objectfrommetadata.c
===================================================================
--- trunk/ippdb/tests/objectfrommetadata.c	(revision 7461)
+++ trunk/ippdb/tests/objectfrommetadata.c	(revision 7501)
@@ -1581,4 +1581,8 @@
             exit(EXIT_FAILURE);
         }
+        if (!psMetadataAddS32(md, PS_LIST_TAIL, "iteration", 0, NULL, -32)) {
+            psFree(md);
+            exit(EXIT_FAILURE);
+        }
 
         object = detRunObjectFromMetadata(md);
@@ -1591,4 +1595,8 @@
 
         if (strncmp(object->det_type, "a string", MAX_STRING_LENGTH)) {
+            psFree(object);
+            exit(EXIT_FAILURE);
+        }
+        if (!object->iteration == -32) {
             psFree(object);
             exit(EXIT_FAILURE);
Index: trunk/ippdb/tests/pop.c
===================================================================
--- trunk/ippdb/tests/pop.c	(revision 7461)
+++ trunk/ippdb/tests/pop.c	(revision 7501)
@@ -484,11 +484,12 @@
         psDB            *dbh;
         char            det_type[256];
-
-        dbh = psDBInit("localhost", "test", NULL, "test");
-        if (!dbh) {
-            exit(EXIT_FAILURE);
-        }
-
-        if (!detRunPop(dbh, (char **)&det_type)) { 
+        psS32           iteration;
+
+        dbh = psDBInit("localhost", "test", NULL, "test");
+        if (!dbh) {
+            exit(EXIT_FAILURE);
+        }
+
+        if (!detRunPop(dbh, (char **)&det_type, &iteration)) { 
             exit(EXIT_FAILURE);
         }
