Fixed test crash: correctly initialize pointers in the test.