added test.cpp file