Modified sample.cpp and CTestTests.txt