Some small codes in test.cpp