[aop] fixed ConstrainedScheduler, added complex test case;