Using temporary configuration file when testing