Create test.cpp

test code