fixed #2852: Modifying testcase's codes to fix multiple resource adapting.