tests: Fix 'may be used uninitialized' warnings