testing mode needs this.

Mistakenly removed this in previous fix. Add it back. This is required in testing mode (--testing).

Test runs:
1. make test
2. runs on dev: all look fine
 2-a. with --testing & --loggingconf
 2-b. with --testing but without --loggingconf
 2-c. without --testing but with --loggingconf
 2-d. without --testing & --loggingconf