Moved the framework tests out of main.cpp and into separate files.
Fixed bug where SubsystemThread would hang in destructor.