[autodiscovery] added a better testcase;