added test.cpp working