Integrate google test framework:

Conditional compiling run_tests() to TraceBasedSim.cpp, using debug flag.