Create StatTest.cpp

this source file could be running at Windows and Linux