Dynamically set config['test_mode']