I am not sure if I understood you right, but now I've reverted to the `CreateConfigurationWithDummyUser` method, but instead of writing the file directly, using the `Configuration` class. The method still returns the path to the configuration file, which then is used as global configuration file.

The directory to the config file must exist (hence the `Directory.CreateDirectory`), but the file itself not.