updated test .cpp file