add a config.reset function to clear configuration state before tests.