added test.cpp file to assignment2 folder