Fix cppcheck uninit'd variable warnings in tests.