Index: branches/jhoblitt/ippdb/tests/metadatafromobject.c
===================================================================
--- branches/jhoblitt/ippdb/tests/metadatafromobject.c	(revision 7500)
+++ branches/jhoblitt/ippdb/tests/metadatafromobject.c	(revision 8006)
@@ -1059,5 +1059,5 @@
         bool            status;
 
-        object = detRunRowAlloc("a string", -32);
+        object = detRunRowAlloc(-32, "a string");
         if (!object) {
             exit(EXIT_FAILURE);
@@ -1071,9 +1071,9 @@
         psFree(object);
 
+        if (!psMetadataLookupS32(&status, md, "iteration") == -32) {
+            psFree(md);
+            exit(EXIT_FAILURE);
+        }
         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);
