add update test.cpp