bug fixed for create/destroy scheduler & add testcase
Merge pull request #618 from wenshao/master

bug fixed for create/destroy scheduler & add testcase