test.cpp fixed