added an optional keyword arg to testing that lets you specify if the config_data should be in flattened form (defaults to True)