fix uninitialized variable in test code