added test.cpp