Fix uninitialized memory in test code