Fix uninitialized pointer in test case