add --print-debug-messages flag to test suite to allow switch on/off dumping debug messages into log files