Added BUILD_TESTS flag and a file to test participants
Moved initializations from main.cpp to global.cpp