Fix config loading for unit tests