The config template is created if it not exists? If yes so the test also need to assert that a config template is created with the given name, if no so a factory must be used and this is a bug because it is adding a not created config template.