Update test.cpp

add main
Merge pull request #1 from mungco/nju

Update test.cpp