Fix creation of temporary files in YamlStore tests.