fixed testCode.cpp so that it compiles