Add scheduledset and a test case for it.