Test: Fix CI failure

Currently CI fails with --wrapper 'valgrind --error-exitcode=1'

This commit fixes few variables initialization in test code and increase
timeout to generate certs to 500 seconds considering valgrind enabled.

Tested by:
CI passed with --wrapper 'valgrind --error-exitcode=1'

Change-Id: I1bf26fb2fafbf68bcb128eb77083a99867dd21c8
Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
diff --git a/test/meson.build b/test/meson.build
index e2cc092..d90822b 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -45,7 +45,8 @@
             cert_manager_dep,
         ],
     ),
-    timeout: 360, # Takes about 1 minute to generate all the certs.  Allow 3x.
+    timeout: 500, # Takes about 1 minute to generate all the certs.
+                  # considering valgrind enabled path setting up this 500 sec.
 )
 
 if not get_option('ca-cert-extension').disabled()