Add proper handling of hex data
diff --git a/tests/suites/desktop_test.function b/tests/suites/desktop_test.function
index 6e7fd07..b2906a8 100644
--- a/tests/suites/desktop_test.function
+++ b/tests/suites/desktop_test.function
@@ -274,9 +274,22 @@
         }
         else if ( strcmp( type, "hex" ) == 0 )
         {
-            *int_params_store = unhexify( (unsigned char *) val, val );
-            *out++ = (char *)int_params_store++;
-            *out++ = val;
+            if ( verify_string( &val ) == 0 )
+            {
+                int j;
+                *int_params_store = unhexify( (unsigned char *) val, val );
+                printf ("\n");
+                for (j = 0; j < *int_params_store; j++)
+                    printf ("%02x ", (uint8_t)val[j]);
+                printf ("\n len %d\n", *int_params_store);
+                *out++ = val;
+                *out++ = (char *)(int_params_store++);
+            }
+            else
+            {
+                ret = ( DISPATCH_INVALID_TEST_DATA );
+                break;
+            }
         }
         else if ( strcmp( type, "exp" ) == 0 )
         {