inject scheduler, add test