[ERT-448] Fix crash when starting gert with new config file.

Make createNewConfig static so that it can be called.
Added testsuite-case for createNewConfig.