added submodule test-core
added xmain.cpp