bug fixed for create/destroy scheduler & add testcase