fix the bug of rule_task , remove the test code