Added test.cpp demo program