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

Modifying testcase's codes to fix multiple resource adapting.