Avoid -Wsometimes-uninitialized error for valid test code