added replace_config tests