Add test for ConfigGenerator.