fix bug in test.cc
Update header file and proposal