fix compilation errors in testecho.cpp