fixed test.cpp