refine test2/test.cpp