added test.cpp
added test file