ADD: support for auto schedule and its tests