improve the config test by stub the ask method