Fixed failing test. should only create index when there is a scheduled item