add scheduler tests