debugged version that is able to read the right CMNTest settings file and overwrite the CBC thresholds with a global threshold