I created a SchedulerTestBase as part of https://github.com/caskdata/cdap/pull/1624, however, a lot more shared/duplicate code can be moved there.
Fixed in https://github.com/caskdata/cdap/pull/1798