fix test.cpp error